Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
index 626ff0241deceafd8b9d9b3d5d4cae370fea9036..7a7ff49ea919d2168078e1de18e5de649414db99 100644 |
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
@@ -429,6 +429,10 @@ std::string OmniboxViewViews::GetClassName() const { |
void OmniboxViewViews::OnBoundsChanged(const gfx::Rect& previous_bounds) { |
if (popup_view_->IsOpen()) |
popup_view_->UpdatePopupAppearance(); |
+ |
+ // Pass the location bar's bounds to the edit model because the OmniboxView |
+ // does not fill the entire box when gray text is showing. |
+ model()->OnOmniboxBoundsChanged(location_bar_view_->GetBoundsInScreen()); |
} |
//////////////////////////////////////////////////////////////////////////////// |