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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_mac.mm

Issue 1250403002: [Mac] Move UI item validation to UserInterfaceItemCommandHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@commandexecute
Patch Set: Properly release |commandHandler|. Created 5 years, 3 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
« no previous file with comments | « chrome/browser/ui/cocoa/chrome_event_processing_window.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_frame_mac.mm
diff --git a/chrome/browser/ui/views/frame/browser_frame_mac.mm b/chrome/browser/ui/views/frame/browser_frame_mac.mm
index cd705a40a9a22b67959a34aae7d8dd37a299554f..d28a4da4bae421fe9cc3406d82b383b6947a356f 100644
--- a/chrome/browser/ui/views/frame/browser_frame_mac.mm
+++ b/chrome/browser/ui/views/frame/browser_frame_mac.mm
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/frame/browser_frame_mac.h"
+#import "chrome/browser/ui/cocoa/browser_window_command_handler.h"
#import "chrome/browser/ui/cocoa/chrome_command_dispatcher_delegate.h"
#include "chrome/browser/ui/views/frame/browser_frame.h"
#include "chrome/browser/ui/views/frame/browser_shutdown.h"
@@ -70,6 +71,8 @@ NativeWidgetMacNSWindow* BrowserFrameMac::CreateNSWindow(
backing:NSBackingStoreBuffered
defer:NO]);
[ns_window setCommandDispatcherDelegate:command_dispatcher_delegate_];
+ [ns_window setCommandHandler:[[[BrowserWindowCommandHandler alloc] init]
+ autorelease]];
return ns_window.autorelease();
}
« no previous file with comments | « chrome/browser/ui/cocoa/chrome_event_processing_window.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698