Index: ui/keyboard/keyboard_util.cc |
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc |
index 572aecb92798ad6df80cfabd2c7751ea89042a92..205e3010a8aa4dbbf557a70e54ec106ddab17a08 100644 |
--- a/ui/keyboard/keyboard_util.cc |
+++ b/ui/keyboard/keyboard_util.cc |
@@ -184,10 +184,8 @@ bool IsFloatingVirtualKeyboardEnabled() { |
} |
bool IsGestureTypingEnabled() { |
- std::string keyboard_switch = |
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
- switches::kGestureTyping); |
- return keyboard_switch == switches::kGestureTypingEnabled; |
+ return base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
+ switches::kGestureTyping) != switches::kGestureTypingDisabled; |
} |
bool IsGestureEditingEnabled() { |