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

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

Issue 7129037: Act on the incognito enabled policy change and set the menu accordingly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
===================================================================
--- chrome/browser/ui/browser.cc (revision 88337)
+++ chrome/browser/ui/browser.cc (working copy)
@@ -260,6 +260,7 @@
profile_pref_registrar_.Add(prefs::kDevToolsDisabled, this);
profile_pref_registrar_.Add(prefs::kEditBookmarksEnabled, this);
profile_pref_registrar_.Add(prefs::kInstantEnabled, this);
+ profile_pref_registrar_.Add(prefs::kIncognitoEnabled, this);
InitCommandState();
BrowserList::AddBrowser(this);
@@ -3680,6 +3681,10 @@
} else {
CreateInstantIfNecessary();
}
+ } else if (pref_name == prefs::kIncognitoEnabled) {
+ command_updater_.UpdateCommandEnabled(
+ IDC_NEW_INCOGNITO_WINDOW,
+ profile_->GetPrefs()->GetBoolean(prefs::kIncognitoEnabled));
} else if (pref_name == prefs::kDevToolsDisabled) {
UpdateCommandsForDevTools();
if (profile_->GetPrefs()->GetBoolean(prefs::kDevToolsDisabled))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698