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

Unified Diff: ui/keyboard/keyboard_util.cc

Issue 1149383006: Move smart deploy to tristate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change histogram id. Created 5 years, 6 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 | « ui/keyboard/keyboard_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_util.cc
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc
index 00b9f9e99d779d17319039c4fea5c0f638da0fca..f78b729256151f3905f0b858960fa941280732e2 100644
--- a/ui/keyboard/keyboard_util.cc
+++ b/ui/keyboard/keyboard_util.cc
@@ -177,6 +177,13 @@ bool IsGestureEditingEnabled() {
return keyboard_switch == switches::kGestureEditingEnabled;
}
+bool IsSmartDeployEnabled() {
+ std::string keyboard_switch =
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kSmartVirtualKeyboard);
+ return keyboard_switch != switches::kSmartVirtualKeyboardDisabled;
+}
+
bool IsMaterialDesignEnabled() {
return !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableNewMDInputView);
« no previous file with comments | « ui/keyboard/keyboard_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698