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

Unified Diff: ui/keyboard/keyboard_util.cc

Issue 819223002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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_controller.cc ('k') | ui/message_center/views/message_center_view.cc » ('j') | 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 1752fd438fd9a49f0b8d1810baadc84b02597838..8a67e54260814d88f1b051577a67d8ac66b74f6f 100644
--- a/ui/keyboard/keyboard_util.cc
+++ b/ui/keyboard/keyboard_util.cc
@@ -105,7 +105,7 @@ bool IsKeyboardEnabled() {
if (g_keyboard_show_override == keyboard::KEYBOARD_SHOW_OVERRIDE_DISABLED)
return false;
// Check if any of the flags are enabled.
- return CommandLine::ForCurrentProcess()->HasSwitch(
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableVirtualKeyboard) ||
g_touch_keyboard_enabled ||
(g_keyboard_show_override == keyboard::KEYBOARD_SHOW_OVERRIDE_ENABLED);
@@ -127,8 +127,8 @@ bool IsKeyboardOverscrollEnabled() {
KEYBOARD_OVERSCROLL_OVERRIDE_ENABLED;
}
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableVirtualKeyboardOverscroll)) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableVirtualKeyboardOverscroll)) {
return false;
}
return true;
@@ -143,17 +143,19 @@ void SetKeyboardShowOverride(KeyboardShowOverride override) {
}
bool IsInputViewEnabled() {
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableInputView))
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableInputView))
return true;
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableInputView))
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableInputView))
return false;
// Default value if no command line flags specified.
return true;
}
bool IsExperimentalInputViewEnabled() {
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExperimentalInputViewFeatures)) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableExperimentalInputViewFeatures)) {
return true;
}
return false;
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | ui/message_center/views/message_center_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698