Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3824)

Unified Diff: chrome/browser/ui/webui/flags_ui.cc

Issue 12728008: Revert 186837 "Move pref backing up flags from local state to de..." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/flags_ui.cc
===================================================================
--- chrome/browser/ui/webui/flags_ui.cc (revision 187881)
+++ chrome/browser/ui/webui/flags_ui.cc (working copy)
@@ -219,7 +219,8 @@
if (!current_user_is_owner) {
web_ui()->AddMessageHandler(new FlagsDOMHandler(profile->GetPrefs()));
} else {
- web_ui()->AddMessageHandler(new FlagsDOMHandler(NULL));
+ web_ui()->AddMessageHandler(
+ new FlagsDOMHandler(g_browser_process->local_state()));
// 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))
« no previous file with comments | « chrome/browser/policy/proto/chrome_device_policy.proto ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698