Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
index c03fc97e466a7e4183255c9026f6692e3f354f51..c20de415ed863b2fb52fc2584995b564d1cb27fb 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
@@ -361,7 +361,9 @@ void BrowserWindowCocoa::Restore() { |
void BrowserWindowCocoa::EnterFullscreen(const GURL& url, |
ExclusiveAccessBubbleType bubble_type, |
bool with_toolbar) { |
- if (browser_->fullscreen_controller()->IsWindowFullscreenForTabOrPending()) |
+ if (browser_->exclusive_access_manager() |
+ ->fullscreen_controller() |
+ ->IsWindowFullscreenForTabOrPending()) |
[controller_ enterWebContentFullscreenForURL:url bubbleType:bubble_type]; |
else if (!url.is_empty()) |
[controller_ enterExtensionFullscreenForURL:url bubbleType:bubble_type]; |