Chromium Code Reviews| Index: chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| diff --git a/chrome/browser/ui/cocoa/browser_window_controller_private.mm b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| index 99ef304ce6729e554005c42a8fe0fa3db73f2f27..ff5c9104f76e9b91d6d763734a378e71bcd769cd 100644 |
| --- a/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| +++ b/chrome/browser/ui/cocoa/browser_window_controller_private.mm |
| @@ -907,6 +907,13 @@ willPositionSheet:(NSWindow*)sheet |
| [layout setAvatarLineWidth:[[avatar superview] cr_lineWidth]]; |
| } |
| + // Set whether the toolbar view is visible or not. For hosted apps in windows, |
| + // [self hasToolbar] returns NO, but [self hasLocationBar] returns YES; |
| + // however, hosted apps can independently control whether they show or hide |
| + // the location bar based on the current origin. Hosted app windows do not |
| + // show the bookmark bar, so this does not interfere with the positioning of |
| + // that bar. |
| + [layout setToolbarHidden:[toolbarController_ view].isHidden]; |
|
tapted
2015/10/12 23:56:43
use [[toolbarController_ view] isHidden] (dot not
dominickn
2015/10/15 06:22:27
Changes removed
|
| [layout setHasToolbar:[self hasToolbar]]; |
| [layout setToolbarHeight:NSHeight([[toolbarController_ view] bounds])]; |