| Index: chrome/browser/ui/cocoa/presentation_mode_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/presentation_mode_controller.mm b/chrome/browser/ui/cocoa/presentation_mode_controller.mm
|
| index d92fb7b6ad87b15d77c40693081c97a4989c9b76..a80ceb1d40c38bf5dca654caeebe7c983080ec3c 100644
|
| --- a/chrome/browser/ui/cocoa/presentation_mode_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/presentation_mode_controller.mm
|
| @@ -180,8 +180,8 @@ OSStatus MenuBarRevealHandler(EventHandlerCallRef handler,
|
| - (void)showActiveWindowUI;
|
| - (void)hideActiveWindowUI;
|
|
|
| -// In Immersive Fullscreen, the menubar is visible iff. toolbarFraction_ >=
|
| -// 1.0.
|
| +// Whether the menu bar should be shown in immersive fullscreen for the screen
|
| +// that contains the window.
|
| - (BOOL)shouldShowMenubarInImmersiveFullscreen;
|
|
|
| @end
|
| @@ -745,7 +745,7 @@ OSStatus MenuBarRevealHandler(EventHandlerCallRef handler,
|
| }
|
|
|
| - (BOOL)shouldShowMenubarInImmersiveFullscreen {
|
| - return toolbarFraction_ >= 1.0;
|
| + return [self doesScreenHaveMenuBar] && toolbarFraction_ > 0.99;
|
| }
|
|
|
| @end
|
|
|