summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/browser_window_controller.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller.mm')
-rw-r--r--chrome/browser/cocoa/browser_window_controller.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm
index 51d1ced..de344ad 100644
--- a/chrome/browser/cocoa/browser_window_controller.mm
+++ b/chrome/browser/cocoa/browser_window_controller.mm
@@ -299,6 +299,10 @@ willPositionSheet:(NSWindow*)sheet
hasLocationBar:[self hasLocationBar]];
[[[self window] contentView] addSubview:[toolbarController_ view]];
+ // This must be done after the view is added to the window since it relies
+ // on the window bounds to determine whether to show buttons or not.
+ [toolbarController_ createBrowserActionButtons];
+
// Create a sub-controller for the bookmark bar.
bookmarkBarController_.reset(
[[BookmarkBarController alloc]