#include "components/flags_ui/pref_service_flags_storage.h"
#include "base/logging.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/flags_ui/flags_ui_pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
namespace flags_ui {
PrefServiceFlagsStorage::PrefServiceFlagsStorage(PrefService* prefs)
: … { … }
PrefServiceFlagsStorage::~PrefServiceFlagsStorage() { … }
std::set<std::string> PrefServiceFlagsStorage::GetFlags() const { … }
bool PrefServiceFlagsStorage::SetFlags(const std::set<std::string>& flags) { … }
std::string PrefServiceFlagsStorage::GetOriginListFlag(
const std::string& internal_entry_name) const { … }
void PrefServiceFlagsStorage::SetOriginListFlag(
const std::string& internal_entry_name,
const std::string& origin_list_value) { … }
std::string PrefServiceFlagsStorage::GetStringFlag(
const std::string& internal_entry_name) const { … }
void PrefServiceFlagsStorage::SetStringFlag(
const std::string& internal_entry_name,
const std::string& string_value) { … }
void PrefServiceFlagsStorage::CommitPendingWrites() { … }
void PrefServiceFlagsStorage::RegisterPrefs(PrefRegistrySimple* registry) { … }
#if BUILDFLAG(IS_CHROMEOS_ASH)
void PrefServiceFlagsStorage::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterListPref(prefs::kAboutFlagsEntries);
registry->RegisterDictionaryPref(prefs::kAboutFlagsOriginLists);
}
#endif
}