Index: chrome/browser/ui/gtk/browser_titlebar.cc |
diff --git a/chrome/browser/ui/gtk/browser_titlebar.cc b/chrome/browser/ui/gtk/browser_titlebar.cc |
index 1bea5c143a4823f10a39913e0711c34a929b339d..909545b0b22fc281ec41c3f73c543413e766ddd5 100644 |
--- a/chrome/browser/ui/gtk/browser_titlebar.cc |
+++ b/chrome/browser/ui/gtk/browser_titlebar.cc |
@@ -614,11 +614,12 @@ void BrowserTitlebar::UpdateTitleAndIcon() { |
// top left of the custom frame, that will get updated when the |
// throbber is updated. |
Profile* profile = browser_window_->browser()->profile(); |
- gfx::Image icon = browser_window_->browser()->GetCurrentPageIcon(); |
- if (icon.IsEmpty()) { |
+ const gfx::Image* icon = browser_window_->browser()->GetCurrentPageIcon( |
+ IconUtil::kMediumIconSize); |
+ if (!icon || icon->IsEmpty()) { |
gtk_util::SetWindowIcon(window_, profile); |
} else { |
- gtk_util::SetWindowIcon(window_, profile, icon.ToGdkPixbuf()); |
+ gtk_util::SetWindowIcon(window_, profile, icon->ToGdkPixbuf()); |
} |
break; |
} |