| 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 433bf6b12bee8178e49a84139c71603905c78862..807eef65cabb97951f4e31f8e6726e507c0cc21a 100644
|
| --- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| +++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
|
| @@ -211,7 +211,7 @@ OmniboxViewViews::~OmniboxViewViews() {
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // OmniboxViewViews public:
|
|
|
| -void OmniboxViewViews::Init() {
|
| +void OmniboxViewViews::Init(views::View* popup_parent_view) {
|
| // The height of the text view is going to change based on the font used. We
|
| // don't want to stretch the height, and we want it vertically centered.
|
| // TODO(oshima): make sure the above happens with views.
|
| @@ -229,8 +229,9 @@ void OmniboxViewViews::Init() {
|
|
|
| // Create popup view using the same font as |textfield_|'s.
|
| popup_view_.reset(
|
| - OmniboxPopupContentsView::CreateForEnvironment(
|
| - textfield_->font(), this, model_.get(), location_bar_view_));
|
| + OmniboxPopupContentsView::Create(
|
| + textfield_->font(), this, model_.get(), location_bar_view_,
|
| + popup_parent_view));
|
|
|
| const int vertical_margin = !popup_window_mode_ ?
|
| kAutocompleteVerticalMargin : kAutocompleteVerticalMarginInPopup;
|
|
|