| Index: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
| diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
| index d716b57767e858e0bc7b5d107f630642efcd3ba8..934542e5176ea9038509cbdcb6a1de78c39fa38b 100644
|
| --- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
| +++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
|
| @@ -116,12 +116,17 @@ void OmniboxPopupContentsView::LayoutChildren() {
|
| ThemeProperties::PROPERTY_OMNIBOX_DROPDOWN_MIN_TEXT_VERTICAL_PADDING);
|
|
|
| gfx::Rect contents_rect = GetContentsBounds();
|
| -
|
| contents_rect.Inset(
|
| - left_margin_,
|
| - views::NonClientFrameView::kClientEdgeThickness + min_vertical_padding,
|
| - right_margin_,
|
| - min_vertical_padding);
|
| + 0, views::NonClientFrameView::kClientEdgeThickness + min_vertical_padding,
|
| + 0, min_vertical_padding);
|
| +
|
| + // In the non-material dropdown, the colored/clickable regions within the
|
| + // dropdown are only as wide as the location bar. In the material version,
|
| + // these are full width, and OmniboxResultView instead insets the icons/text
|
| + // inside to be aligned with the location bar.
|
| + if (!ui::MaterialDesignController::IsModeMaterial())
|
| + contents_rect.Inset(left_margin_, 0, right_margin_, 0);
|
| +
|
| int top = contents_rect.y();
|
| for (size_t i = 0; i < AutocompleteResult::kMaxMatches; ++i) {
|
| View* v = child_at(i);
|
|
|