Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2885)

Unified Diff: chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc

Issue 22679003: InstantExtended(gtk): Hide top match if told to so. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Skip DCHECK in test. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc b/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc
index d5bf9faad46f54634317324b5681977d8788c7fc..c9555134f9212a9068a619345b8487365d3ffa58 100644
--- a/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc
+++ b/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc
@@ -211,9 +211,10 @@ OmniboxViewGtk::OmniboxViewGtk(OmniboxEditController* controller,
supports_pre_edit_(!gtk_check_version(2, 20, 0)),
pre_edit_size_before_change_(0),
going_to_focus_(NULL) {
- popup_view_.reset(
- new OmniboxPopupViewGtk
- (GetFont(), this, model(), location_bar));
+ OmniboxPopupViewGtk* view = new OmniboxPopupViewGtk(
+ GetFont(), this, model(), location_bar);
+ view->Init();
+ popup_view_.reset(view);
}
OmniboxViewGtk::~OmniboxViewGtk() {

Powered by Google App Engine
This is Rietveld 408576698