Index: ui/views/touchui/touch_selection_controller_impl.cc |
diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc |
index a57b20807862c558247a338ed929bfbca14725b8..32f7886db4ea604c041da97d5cebf8e0a6cb8060 100644 |
--- a/ui/views/touchui/touch_selection_controller_impl.cc |
+++ b/ui/views/touchui/touch_selection_controller_impl.cc |
@@ -4,10 +4,9 @@ |
#include "ui/views/touchui/touch_selection_controller_impl.h" |
-#include "base/command_line.h" |
#include "base/time.h" |
#include "grit/ui_strings.h" |
-#include "ui/base/ui_base_switches.h" |
+#include "ui/base/ui_base_switches_util.h" |
#include "ui/gfx/canvas.h" |
#include "ui/gfx/rect.h" |
#include "ui/gfx/screen.h" |
@@ -420,11 +419,8 @@ ViewsTouchSelectionControllerFactory::ViewsTouchSelectionControllerFactory() { |
ui::TouchSelectionController* ViewsTouchSelectionControllerFactory::create( |
ui::TouchEditable* client_view) { |
-#if defined(OS_CHROMEOS) |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableTouchEditing)) |
+ if (switches::IsTouchEditingEnabled()) |
return new views::TouchSelectionControllerImpl(client_view); |
-#endif |
return NULL; |
} |