summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/ui/cocoa/browser_window_controller.h2
-rw-r--r--chrome/browser/ui/cocoa/browser_window_controller.mm10
2 files changed, 4 insertions, 8 deletions
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.h b/chrome/browser/ui/cocoa/browser_window_controller.h
index 6320eda..48a193b 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.h
+++ b/chrome/browser/ui/cocoa/browser_window_controller.h
@@ -495,7 +495,7 @@ class Command;
- (void)enterPresentationModeForURL:(const GURL&)url
bubbleType:(FullscreenExitBubbleType)bubbleType;
-// Tries to use AppKit Fullscreen, falls back to Immersive Fullscreen.
+// Enters Immersive Fullscreen for the given URL.
- (void)enterHTML5FullscreenForURL:(const GURL&)url
bubbleType:(FullscreenExitBubbleType)bubbleType;
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index c8b048a..1c3a0ae 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -2107,13 +2107,9 @@ willAnimateFromState:(BookmarkBar::State)oldState
- (void)enterHTML5FullscreenForURL:(const GURL&)url
bubbleType:(FullscreenExitBubbleType)bubbleType {
- if (!chrome::mac::SupportsSystemFullscreen()) {
- [self enterImmersiveFullscreen];
- if (!url.is_empty())
- [self updateFullscreenExitBubbleURL:url bubbleType:bubbleType];
- } else {
- [self enterPresentationModeForURL:url bubbleType:bubbleType];
- }
+ [self enterImmersiveFullscreen];
+ if (!url.is_empty())
+ [self updateFullscreenExitBubbleURL:url bubbleType:bubbleType];
}
- (void)exitAnyFullscreen {