summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/browser_window_controller_private.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/cocoa/browser_window_controller_private.mm')
-rw-r--r--chrome/browser/ui/cocoa/browser_window_controller_private.mm22
1 files changed, 14 insertions, 8 deletions
diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
index 5352dde..ee0310d 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm
@@ -795,14 +795,20 @@ willPositionSheet:(NSWindow*)sheet
- (void)showFullscreenExitBubbleIfNecessary {
[presentationModeController_ ensureOverlayHiddenWithAnimation:NO delay:NO];
- [fullscreenExitBubbleController_ closeImmediately];
- fullscreenExitBubbleController_.reset(
- [[FullscreenExitBubbleController alloc]
- initWithOwner:self
- browser:browser_.get()
- url:fullscreenUrl_
- bubbleType:fullscreenBubbleType_]);
- [fullscreenExitBubbleController_ showWindow];
+ if (fullscreenBubbleType_ == FEB_TYPE_NONE ||
+ fullscreenBubbleType_ == FEB_TYPE_BROWSER_FULLSCREEN_EXIT_INSTRUCTION) {
+ // Show no exit instruction bubble on Mac when in Browser Fullscreen.
+ [self destroyFullscreenExitBubbleIfNecessary];
+ } else {
+ [fullscreenExitBubbleController_ closeImmediately];
+ fullscreenExitBubbleController_.reset(
+ [[FullscreenExitBubbleController alloc]
+ initWithOwner:self
+ browser:browser_.get()
+ url:fullscreenUrl_
+ bubbleType:fullscreenBubbleType_]);
+ [fullscreenExitBubbleController_ showWindow];
+ }
}
- (void)destroyFullscreenExitBubbleIfNecessary {