diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/cocoa/browser_window_cocoa.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/browser_window_cocoa.mm b/chrome/browser/cocoa/browser_window_cocoa.mm index 85b355c..12dab28 100644 --- a/chrome/browser/cocoa/browser_window_cocoa.mm +++ b/chrome/browser/cocoa/browser_window_cocoa.mm @@ -97,6 +97,12 @@ void BrowserWindowCocoa::UpdateTitleBar() { NSString* newTitle = base::SysUTF16ToNSString(browser_->GetWindowTitleForCurrentTab()); + // Only set the title if we're a popup window. If we call setTitle on a + // regular browser window, it will show up in the titlle bar and cover the + // tab strip. + if (browser_->type() == Browser::TYPE_POPUP) + [window_ setTitle:newTitle]; + // Window menu [NSApp changeWindowsItem:window_ title:newTitle filename:NO]; |