Index: chrome/browser/ui/browser_command_controller.cc |
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc |
index 3a4be68a10b1abf0d677b2f95bfdd4cbfd5bb1d9..99ac47fe648e5c9969aa9c5e43f91986639c8fef 100644 |
--- a/chrome/browser/ui/browser_command_controller.cc |
+++ b/chrome/browser/ui/browser_command_controller.cc |
@@ -834,7 +834,8 @@ void BrowserCommandController::InitCommandState() { |
command_updater_.UpdateCommandEnabled(IDC_CREATE_SHORTCUTS, false); |
UpdateCommandsForDevTools(); |
command_updater_.UpdateCommandEnabled(IDC_TASK_MANAGER, CanOpenTaskManager()); |
- command_updater_.UpdateCommandEnabled(IDC_SHOW_HISTORY, true); |
+ command_updater_.UpdateCommandEnabled(IDC_SHOW_HISTORY, |
+ !ProfileManager::GetDefaultProfileOrOffTheRecord()->IsOffTheRecord()); |
sky
2012/09/25 16:05:27
I think you want Profile::IsGuestSession().
simonhong_
2012/09/26 13:26:25
Done.
|
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); |