| 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 d057283c81ffb2cfcc330004b05a0b88923ba366..5c507c369a5e537ddf2cb2c1c1d79d8ca3dabc6e 100644
|
| --- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
| +++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
|
| @@ -683,6 +683,9 @@ void ToolbarView::UpdateBadgeSeverity(AppMenuBadgeController::BadgeType type,
|
| }
|
|
|
| int ToolbarView::PopupTopSpacing() const {
|
| + if (browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH)
|
| + return 0;
|
| +
|
| const int kAdditionalPopupTopSpacingNonGlass = 2;
|
| return views::NonClientFrameView::kClientEdgeThickness +
|
| (GetWidget()->ShouldWindowContentsBeTransparent() ?
|
| @@ -730,14 +733,7 @@ gfx::Size ToolbarView::SizeForContentSize(gfx::Size size) const {
|
| 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 {
|
| + } else if (size.height() > 0) {
|
| size.Enlarge(
|
| 0, PopupTopSpacing() + views::NonClientFrameView::kClientEdgeThickness);
|
| }
|
|
|