Index: chrome/browser/ui/views/toolbar/toolbar_view.cc |
diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc |
index 7c743394e3e3d22b9d3e7013be9f1082822d0491..4a725f7a69e795446421217c7e846e4f2b4dee8f 100644 |
--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc |
+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc |
@@ -739,6 +739,13 @@ gfx::Size ToolbarView::SizeForContentSize(gfx::Size size) const { |
GetThemeProvider()->GetImageSkiaNamed(IDR_CONTENT_TOP_CENTER); |
size.SetToMax( |
gfx::Size(0, normal_background->height() - content_shadow_height())); |
+ } else if (size.height() == 0) { |
+ // Location mode with a 0 height location bar. If on ash, expand by one |
+ // pixel to show a border in the title bar, otherwise leave the size as zero |
+ // height. |
+ const int kAshBorderSpacing = 1; |
+ if (browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) |
+ size.Enlarge(0, kAshBorderSpacing); |
} else { |
const int kPopupBottomSpacingGlass = 1; |
const int kPopupBottomSpacingNonGlass = 2; |