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

Unified Diff: ui/base/ui_base_switches_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/base/touch/touch_enabled.cc ('k') | ui/base/win/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ui_base_switches_util.cc
diff --git a/ui/base/ui_base_switches_util.cc b/ui/base/ui_base_switches_util.cc
index 5fe380a21deff0d85060d6bd2586c947df0ec238..6dcb9ef3b329794be58b6b11746623d9e0fc8f52 100644
--- a/ui/base/ui_base_switches_util.cc
+++ b/ui/base/ui_base_switches_util.cc
@@ -13,8 +13,8 @@ bool IsLinkDisambiguationPopupEnabled() {
#if defined(OS_ANDROID)
return true;
#else
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableLinkDisambiguationPopup)) {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableLinkDisambiguationPopup)) {
return true;
}
return false;
@@ -22,33 +22,34 @@ bool IsLinkDisambiguationPopupEnabled() {
}
bool IsTextInputFocusManagerEnabled() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTextInputFocusManager);
}
bool IsTouchDragDropEnabled() {
#if defined(OS_CHROMEOS)
- return !CommandLine::ForCurrentProcess()->HasSwitch(
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableTouchDragDrop);
#else
- return CommandLine::ForCurrentProcess()->HasSwitch(
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchDragDrop);
#endif
}
bool IsTouchEditingEnabled() {
#if defined(USE_AURA)
- return !CommandLine::ForCurrentProcess()->HasSwitch(
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableTouchEditing);
#else
- return CommandLine::ForCurrentProcess()->HasSwitch(
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchEditing);
#endif
}
bool IsTouchFeedbackEnabled() {
- static bool touch_feedback_enabled = !CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kDisableTouchFeedback);
+ static bool touch_feedback_enabled =
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableTouchFeedback);
return touch_feedback_enabled;
}
« no previous file with comments | « ui/base/touch/touch_enabled.cc ('k') | ui/base/win/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698