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

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

Issue 11298004: alternate ntp: add "Recent Tabs" submenu to wrench menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed scott's comments Created 8 years, 1 month 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/browser_command_controller.cc
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index 436272f1694c4c314372f1a5c8bfcfa14bddd1d8..1e89b3a61a3a215e2058d8387f8e4376b0e43f8b 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -852,6 +852,9 @@ void BrowserCommandController::InitCommandState() {
command_updater_.UpdateCommandEnabled(IDC_HELP_PAGE_VIA_MENU, true);
command_updater_.UpdateCommandEnabled(IDC_BOOKMARKS_MENU,
!Profile::IsGuestSession());
+ command_updater_.UpdateCommandEnabled(IDC_RECENT_TABS_MENU,
+ !Profile::IsGuestSession() &&
+ !profile()->IsOffTheRecord());
command_updater_.UpdateCommandEnabled(
IDC_SHOW_SYNC_SETUP, profile()->GetOriginalProfile()->IsSyncAccessible());

Powered by Google App Engine
This is Rietveld 408576698