Index: chrome/browser/ui/cocoa/fullscreen_window.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/fullscreen_window.mm (revision 117895) |
+++ chrome/browser/ui/cocoa/fullscreen_window.mm (working copy) |
@@ -4,7 +4,6 @@ |
#import "chrome/browser/ui/cocoa/fullscreen_window.h" |
-#import "chrome/browser/ui/cocoa/browser_window_controller.h" |
#import "chrome/browser/ui/cocoa/themed_window.h" |
@implementation FullscreenWindow |
@@ -73,17 +72,10 @@ |
// We need our own version, since the default one wants to flash the close |
// button (and possibly other things), which results in nothing happening. |
- (void)performClose:(id)sender { |
- id delegate = [self delegate]; |
+ BOOL shouldClose = YES; |
- // Route -performClose: to -commandDispatch: on the delegate when coming from |
- // the "close tab" menu item. See comment in chrome_browser_window.mm. |
- if ([self performCloseShouldRouteToCommandDispatch:sender]) { |
- [delegate commandDispatch:sender]; |
- return; |
- } |
- |
// If applicable, check if this window should close. |
- BOOL shouldClose = YES; |
+ id delegate = [self delegate]; |
if ([delegate respondsToSelector:@selector(windowShouldClose:)]) |
shouldClose = [delegate windowShouldClose:self]; |