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

Unified Diff: chrome/browser/ui/cocoa/history_menu_cocoa_controller.mm

Issue 11906008: Make Mac menu code obey incognito availability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: formatting Created 7 years, 11 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
Index: chrome/browser/ui/cocoa/history_menu_cocoa_controller.mm
diff --git a/chrome/browser/ui/cocoa/history_menu_cocoa_controller.mm b/chrome/browser/ui/cocoa/history_menu_cocoa_controller.mm
index 3db91984125376e143128a5ea89f103696da01fe..f76b462fa46f66316e93d2cc7f3631dd318f6983 100644
--- a/chrome/browser/ui/cocoa/history_menu_cocoa_controller.mm
+++ b/chrome/browser/ui/cocoa/history_menu_cocoa_controller.mm
@@ -34,7 +34,7 @@ using content::Referrer;
- (BOOL)validateMenuItem:(NSMenuItem*)menuItem {
AppController* controller = [NSApp delegate];
- return [controller keyWindowIsNotModal];
+ return ![controller keyWindowIsModal];
}
// Open the URL of the given history item in the current tab.

Powered by Google App Engine
This is Rietveld 408576698