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

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 14299467c21b1e69d0b789f68700ebb83a4e6f06..7d1af393ef7f13d59a7466b9f6447904dac86f50 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"
@@ -46,14 +45,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