summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_command_controller.cc
diff options
context:
space:
mode:
authorjwd@chromium.org <jwd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 22:37:33 +0000
committerjwd@chromium.org <jwd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 22:37:33 +0000
commit10507b335b0dd318390ac7a6c02c4922afb587e3 (patch)
tree1fd50356804329f0fc320a209bb7a79b6620c447 /chrome/browser/ui/browser_command_controller.cc
parent4fe6405b11911a5d638c6cf6716e278e073e2457 (diff)
downloadchromium_src-10507b335b0dd318390ac7a6c02c4922afb587e3.zip
chromium_src-10507b335b0dd318390ac7a6c02c4922afb587e3.tar.gz
chromium_src-10507b335b0dd318390ac7a6c02c4922afb587e3.tar.bz2
Making IsGuestSession an instance method of Profile, instead of static.
BUG=103846 Review URL: https://chromiumcodereview.appspot.com/11363227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_command_controller.cc')
-rw-r--r--chrome/browser/ui/browser_command_controller.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 930e037..e4ae218 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -851,14 +851,14 @@ void BrowserCommandController::InitCommandState() {
UpdateCommandsForDevTools();
command_updater_.UpdateCommandEnabled(IDC_TASK_MANAGER, CanOpenTaskManager());
command_updater_.UpdateCommandEnabled(IDC_SHOW_HISTORY,
- !Profile::IsGuestSession());
+ !profile()->IsGuestSession());
command_updater_.UpdateCommandEnabled(IDC_SHOW_DOWNLOADS, true);
command_updater_.UpdateCommandEnabled(IDC_HELP_PAGE_VIA_KEYBOARD, true);
command_updater_.UpdateCommandEnabled(IDC_HELP_PAGE_VIA_MENU, true);
command_updater_.UpdateCommandEnabled(IDC_BOOKMARKS_MENU,
- !Profile::IsGuestSession());
+ !profile()->IsGuestSession());
command_updater_.UpdateCommandEnabled(IDC_RECENT_TABS_MENU,
- !Profile::IsGuestSession() &&
+ !profile()->IsGuestSession() &&
!profile()->IsOffTheRecord());
command_updater_.UpdateCommandEnabled(