| 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 75362f94f1402faaed78a7cbb78bf07d25771ad2..9835cf3561501c7db711f9e9d49243b0bd090bd8 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
|
| @@ -789,23 +789,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];
|
| }
|
|
|
|
|