Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(927)

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 2557533003: [Mac] Fixed permission bubble position in fullscreen (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index bf0c2526ee7b69e22d355075e0dd96eb0168487b..8de8b1a0db208bc80897f52e2d431d04ecb29cc1 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1977,7 +1977,10 @@ willAnimateFromState:(BookmarkBar::State)oldState
}
- (BOOL)hasToolbar {
- return [self supportsWindowFeature:Browser::FEATURE_TOOLBAR];
+ FullscreenToolbarLayout layout =
+ [[self fullscreenToolbarController] computeLayout];
+ return layout.toolbarStyle != FullscreenToolbarStyle::TOOLBAR_NONE &&
+ [self supportsWindowFeature:Browser::FEATURE_TOOLBAR];
}
- (BOOL)hasLocationBar {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698