| Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| index dedd849515b079ffec7d9e6072ddb27e6d290af8..347ce9583ddae9290489ff66e23a9f4f0df829e3 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| @@ -791,23 +791,15 @@ willPositionSheet:(NSWindow*)sheet
|
| }
|
|
|
| - (void)showFullscreenExitBubbleIfNecessary {
|
| - if (!browser_->IsFullscreenForTabOrPending()) {
|
| - return;
|
| - }
|
| -
|
| [presentationModeController_ ensureOverlayHiddenWithAnimation:NO delay:NO];
|
|
|
| + [fullscreenExitBubbleController_ closeImmediately];
|
| fullscreenExitBubbleController_.reset(
|
| [[FullscreenExitBubbleController alloc]
|
| initWithOwner:self
|
| browser:browser_.get()
|
| url:fullscreenUrl_
|
| bubbleType:fullscreenBubbleType_]);
|
| - NSView* contentView = [[self window] contentView];
|
| - CGFloat maxWidth = NSWidth([contentView frame]);
|
| - CGFloat maxY = NSMaxY([[[self window] contentView] frame]);
|
| - [fullscreenExitBubbleController_
|
| - positionInWindowAtTop:maxY width:maxWidth];
|
| [fullscreenExitBubbleController_ showWindow];
|
| }
|
|
|
|
|