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..3681e5fac126ebc72f818951ee6c7ffb08df62d0 100644 |
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc |
@@ -668,6 +668,12 @@ bool OmniboxViewViews::IsImeComposing() const { |
return false; |
} |
+gfx::Rect OmniboxViewViews::GetBounds() const { |
+ // The location bar's bounds are returned because when gray text is showing, |
+ // the OmniboxView does not fill the entire box. |
+ return location_bar_view_->GetBoundsInScreen(); |
+} |
+ |
int OmniboxViewViews::GetMaxEditWidth(int entry_width) const { |
return entry_width; |
} |