testing/scripts/variations_seed_access_helper.py
def update_local_state(user_data_dir, update_dict):
  """Updates local state file under user data dir with given dict.

  Args:
    user_data_dir (str): Path to the user data directory used to launch Chrome.
    update_dict (dict): A dict used to update current local state file.
  """
  with open(os.path.join(user_data_dir, _LOCAL_STATE_FILE_NAME)) as f:
    local_state = json.load(f)

  local_state.update(update_dict)

  with open(os.path.join(user_data_dir, _LOCAL_STATE_FILE_NAME), 'w') as f:
    json.dump(local_state, f)
Updates local state file under user data dir with given dict.

  Args:
    user_data_dir (str): Path to the user data directory used to launch Chrome.
    update_dict (dict): A dict used to update current local state file.
  
Updates local state file under user data dir with given dict.
Updates local state file under user data dir with given dict .
def update_local_state(user_data_dir, update_dict):
  with open(os.path.join(user_data_dir, _LOCAL_STATE_FILE_NAME)) as f:
    local_state = json.load(f)
  local_state.update(update_dict)
  with open(os.path.join(user_data_dir, _LOCAL_STATE_FILE_NAME), 'w') as f:
    json.dump(local_state, f)
def update_local_state ( user_data_dir , update_dict ) : with open ( os . path . join ( user_data_dir , _LOCAL_STATE_FILE_NAME ) ) as f : local_state = json . load ( f ) local_state . update ( update_dict ) with open ( os . path . join ( user_data_dir , _LOCAL_STATE_FILE_NAME ) , 'w' ) as f : json . dump ( local_state , f )
Updates local state file under user data dir with given dict.
Updates local state file under user data dir with given dict .
"""Updates local state file under user data dir with given dict.

  Args:
    user_data_dir (str): Path to the user data directory used to launch Chrome.
    update_dict (dict): A dict used to update current local state file.
  """
user_data_dir
Path to the user data directory used to launch Chrome.
Path to the user data directory used to launch Chrome .
update_dict
A dict used to update current local state file.
A dict used to update current local state file .