diff options
Diffstat (limited to 'chrome/browser/dom_ui/flags_ui.cc')
-rw-r--r-- | chrome/browser/dom_ui/flags_ui.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/dom_ui/flags_ui.cc b/chrome/browser/dom_ui/flags_ui.cc index bd70d028..ac76a8f 100644 --- a/chrome/browser/dom_ui/flags_ui.cc +++ b/chrome/browser/dom_ui/flags_ui.cc @@ -15,7 +15,6 @@ #include "chrome/browser/browser_thread.h" #include "chrome/browser/dom_ui/chrome_url_data_manager.h" #include "chrome/browser/prefs/pref_service.h" -#include "chrome/browser/profiles/profile.h" #include "chrome/common/jstemplate_builder.h" #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" @@ -136,7 +135,7 @@ void FlagsDOMHandler::HandleRequestFlagsExperiments(const ListValue* args) { DictionaryValue results; results.Set("flagsExperiments", about_flags::GetFlagsExperimentsData( - dom_ui_->GetProfile()->GetPrefs())); + g_browser_process->local_state())); results.SetBoolean("needsRestart", about_flags::IsRestartNeededToCommitChanges()); dom_ui_->CallJavascriptFunction(L"returnFlagsExperiments", results); @@ -155,7 +154,7 @@ void FlagsDOMHandler::HandleEnableFlagsExperimentMessage( return; about_flags::SetExperimentEnabled( - dom_ui_->GetProfile()->GetPrefs(), + g_browser_process->local_state(), experiment_internal_name, enable_str == "true"); } @@ -195,6 +194,6 @@ RefCountedMemory* FlagsUI::GetFaviconResourceBytes() { } // static -void FlagsUI::RegisterUserPrefs(PrefService* prefs) { - prefs->RegisterListPref(prefs::kEnabledLabsExperiments); +void FlagsUI::RegisterPrefs(PrefService* local_state) { + local_state->RegisterListPref(prefs::kEnabledLabsExperiments); } |