summaryrefslogtreecommitdiffstats
path: root/ui/base/ui_base_switches_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/ui_base_switches_util.cc')
-rw-r--r--ui/base/ui_base_switches_util.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/base/ui_base_switches_util.cc b/ui/base/ui_base_switches_util.cc
index c541a9b..3203421 100644
--- a/ui/base/ui_base_switches_util.cc
+++ b/ui/base/ui_base_switches_util.cc
@@ -10,13 +10,23 @@
namespace switches {
bool IsTouchDragDropEnabled() {
+#if defined(OS_CHROMEOS)
+ return !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableTouchDragDrop);
+#else
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchDragDrop);
+#endif
}
bool IsTouchEditingEnabled() {
+#if defined(OS_CHROMEOS)
+ return !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableTouchEditing);
+#else
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchEditing);
+#endif
}
bool IsNewDialogStyleEnabled() {