| Index: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
|
| diff --git a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
|
| index 18a7d380ab781b883936bde36970c38e74c502b9..bf609cfb2dcba2da316ebd94325394a3a7c82a69 100644
|
| --- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
|
| +++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.mm
|
| @@ -54,23 +54,13 @@
|
| [[self window] makeKeyAndOrderFront:self];
|
| }
|
|
|
| -- (void)attachConstrainedWindow:(ConstrainedWindowMac*)window {
|
| +- (GTMWindowSheetController*)sheetController {
|
| if (!sheetController_.get()) {
|
| sheetController_.reset([[GTMWindowSheetController alloc]
|
| initWithWindow:[self window]
|
| delegate:self]);
|
| }
|
| -
|
| - NSView* tabContentsView =
|
| - [window->owner()->web_contents()->GetNativeView() superview];
|
| - window->delegate()->RunSheet(sheetController_, tabContentsView);
|
| -}
|
| -
|
| -- (void)removeConstrainedWindow:(ConstrainedWindowMac*)window {
|
| -}
|
| -
|
| -- (BOOL)canAttachConstrainedWindow {
|
| - return YES;
|
| + return sheetController_;
|
| }
|
|
|
| - (void)executeCommand:(int)command {
|
|
|