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

Unified Diff: ui/aura/gestures/gesture_recognizer_unittest.cc

Issue 290733013: Use multi-value switch to enable/disable the unified gesture detector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix flag assignment in GestureRecognizerTest. Created 6 years, 7 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
« no previous file with comments | « no previous file | ui/events/event_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/gestures/gesture_recognizer_unittest.cc
diff --git a/ui/aura/gestures/gesture_recognizer_unittest.cc b/ui/aura/gestures/gesture_recognizer_unittest.cc
index 39be275e273145507341f5b5ddf3dd3d2fa407b0..7de0a23065530cb47158412b97d5f92fa2b688b9 100644
--- a/ui/aura/gestures/gesture_recognizer_unittest.cc
+++ b/ui/aura/gestures/gesture_recognizer_unittest.cc
@@ -681,10 +681,10 @@ class GestureRecognizerTest : public AuraTestBase,
virtual void SetUp() OVERRIDE {
// TODO(tdresser): Once unified GR has landed, only run these tests once.
- if (UsingUnifiedGR()) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kUseUnifiedGestureDetector);
- }
+ CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ switches::kUnifiedGestureDetector,
+ UsingUnifiedGR() ? switches::kUnifiedGestureDetectorEnabled
+ : switches::kUnifiedGestureDetectorDisabled);
AuraTestBase::SetUp();
}
« no previous file with comments | « no previous file | ui/events/event_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698