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

Unified Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 165158: Check the bookmark bar state when updating the title of the page. (Closed)
Patch Set: Created 11 years, 4 months 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/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index 5d23c1f81c1266dda4bfbf00c6fe5e8bbc75a180..70168d10f176de59008c2793e1c6c5c7a1f83d94 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -717,6 +717,12 @@ void BrowserWindowGtk::UpdateTitleBar() {
gtk_window_set_title(window_, UTF16ToUTF8(title).c_str());
if (ShouldShowWindowIcon())
titlebar_->UpdateTitle();
+
+ // We need to update the bookmark bar state if we're navigating away from the
+ // NTP and "always show bookmark bar" is not set. On Windows,
+ // UpdateTitleBar() causes a layout in BrowserView which checks to see if
+ // the bookmarks bar should be shown.
+ MaybeShowBookmarkBar(browser_->GetSelectedTabContents(), false);
}
void BrowserWindowGtk::UpdateDevTools() {
« 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