Index: chrome/browser/ui/webui/flags_ui.cc |
diff --git a/chrome/browser/ui/webui/flags_ui.cc b/chrome/browser/ui/webui/flags_ui.cc |
index 098ea91708086e9c282658bb3dea9edefd25745d..8fad4fffd4b37e7aa83efe793850e46cf6d81002 100644 |
--- a/chrome/browser/ui/webui/flags_ui.cc |
+++ b/chrome/browser/ui/webui/flags_ui.cc |
@@ -219,8 +219,7 @@ void FlagsUI::FinishInitialization( |
if (!current_user_is_owner) { |
web_ui()->AddMessageHandler(new FlagsDOMHandler(profile->GetPrefs())); |
} else { |
- web_ui()->AddMessageHandler( |
- new FlagsDOMHandler(g_browser_process->local_state())); |
+ web_ui()->AddMessageHandler(new FlagsDOMHandler(NULL)); |
Joao da Silva
2013/03/05 17:46:30
Tracking that |prefs| variable around about_flags.
pastarmovj
2013/03/06 17:28:31
Ack. I'd rather keep this work for a later CL.
|
// If the owner managed to set the flags pref on his own profile clear it |
// because it will never be accessible anymore. |
if (profile->GetPrefs()->HasPrefPath(prefs::kEnabledLabsExperiments)) |