diff options
author | bcwhite@chromium.org <bcwhite@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 21:49:34 +0000 |
---|---|---|
committer | bcwhite@chromium.org <bcwhite@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 21:49:34 +0000 |
commit | 9570f173fd1c09f070f1abb30c2b5f450d8c69bb (patch) | |
tree | 0c65bed71c4952550942ea1ddeeedb84a0b7d096 /chrome/browser/ui/browser_command_controller.cc | |
parent | 582957ea17f3c6c8449b019e634c77644e427d32 (diff) | |
download | chromium_src-9570f173fd1c09f070f1abb30c2b5f450d8c69bb.zip chromium_src-9570f173fd1c09f070f1abb30c2b5f450d8c69bb.tar.gz chromium_src-9570f173fd1c09f070f1abb30c2b5f450d8c69bb.tar.bz2 |
Make Settings page inaccessible in Guest mode.
Pages that shouldn't be accessible in incognito are now also made inaccessible when browsing as a Guest profile. In addition, the "advanced settings" are hidden from chrome://settings should the user browse to the page directly.
BUG=352101
Review URL: https://codereview.chromium.org/212583003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260663 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_command_controller.cc')
-rw-r--r-- | chrome/browser/ui/browser_command_controller.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc index 223136a..71a5265 100644 --- a/chrome/browser/ui/browser_command_controller.cc +++ b/chrome/browser/ui/browser_command_controller.cc @@ -1051,7 +1051,8 @@ void BrowserCommandController::UpdateSharedCommandsForIncognitoAvailability( // Bookmark manager and settings page/subpages are forced to open in normal // mode. For this reason we disable these commands when incognito is forced. const bool command_enabled = - incognito_availability != IncognitoModePrefs::FORCED; + incognito_availability != IncognitoModePrefs::FORCED && + !profile->IsGuestSession(); command_updater->UpdateCommandEnabled( IDC_SHOW_BOOKMARK_MANAGER, browser_defaults::bookmarks_enabled && command_enabled); |