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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc

Issue 247193002: Remove touch layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/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 f07583362350e189599af46ab746868e3d1e3526..43a3f7d7ffc1fa0f3c62def6ea911782e3ed3f3e 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc
@@ -11,7 +11,6 @@
#include "chrome/browser/ui/omnibox/omnibox_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/browser/ui/views/omnibox/omnibox_result_view.h"
-#include "chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.h"
#include "grit/ui_resources.h"
#include "ui/base/theme_provider.h"
#include "ui/gfx/canvas.h"
@@ -49,14 +48,8 @@ OmniboxPopupView* OmniboxPopupContentsView::Create(
OmniboxEditModel* edit_model,
LocationBarView* location_bar_view) {
OmniboxPopupContentsView* view = NULL;
- if (ui::GetDisplayLayout() == ui::LAYOUT_TOUCH) {
- view = new TouchOmniboxPopupContentsView(
- font_list, omnibox_view, edit_model, location_bar_view);
- } else {
- view = new OmniboxPopupContentsView(
- font_list, omnibox_view, edit_model, location_bar_view);
- }
-
+ view = new OmniboxPopupContentsView(
+ font_list, omnibox_view, edit_model, location_bar_view);
view->Init();
return view;
}

Powered by Google App Engine
This is Rietveld 408576698