#include "components/sync/service/account_pref_utils.h"
#include <string>
#include <utility>
#include "base/containers/contains.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "components/signin/public/base/gaia_id_hash.h"
namespace syncer {
const base::Value* GetAccountKeyedPrefValue(
const PrefService* pref_service,
const char* pref_path,
const signin::GaiaIdHash& gaia_id_hash) { … }
void SetAccountKeyedPrefValue(PrefService* pref_service,
const char* pref_path,
const signin::GaiaIdHash& gaia_id_hash,
base::Value value) { … }
void ClearAccountKeyedPrefValue(PrefService* pref_service,
const char* pref_path,
const signin::GaiaIdHash& gaia_id_hash) { … }
const base::Value* GetAccountKeyedPrefDictEntry(
const PrefService* pref_service,
const char* pref_path,
const signin::GaiaIdHash& gaia_id_hash,
const char* key) { … }
void SetAccountKeyedPrefDictEntry(PrefService* pref_service,
const char* pref_path,
const signin::GaiaIdHash& gaia_id_hash,
const char* key,
base::Value value) { … }
void KeepAccountKeyedPrefValuesOnlyForUsers(
PrefService* pref_service,
const char* pref_path,
const std::vector<signin::GaiaIdHash>& available_gaia_ids) { … }
}