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

Unified Diff: components/signin/core/common/profile_management_switches.cc

Issue 818103002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: components/signin/core/common/profile_management_switches.cc
diff --git a/components/signin/core/common/profile_management_switches.cc b/components/signin/core/common/profile_management_switches.cc
index a69675360e829e52dee08ab5284f2c0f89480df5..6d7b089eacc2b66d2c3d8553ce60ddeca5792aa0 100644
--- a/components/signin/core/common/profile_management_switches.cc
+++ b/components/signin/core/common/profile_management_switches.cc
@@ -31,23 +31,21 @@ State GetProcessState() {
return STATE_OLD_AVATAR_MENU;
// Find the state of both command line args.
- bool is_new_avatar_menu =
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNewAvatarMenu);
+ bool is_new_avatar_menu = base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableNewAvatarMenu);
bool is_new_profile_management =
- CommandLine::ForCurrentProcess()->HasSwitch(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableNewProfileManagement);
bool is_consistent_identity =
- CommandLine::ForCurrentProcess()->HasSwitch(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableAccountConsistency);
- bool not_new_avatar_menu =
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableNewAvatarMenu);
+ bool not_new_avatar_menu = base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableNewAvatarMenu);
bool not_new_profile_management =
- CommandLine::ForCurrentProcess()->HasSwitch(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableNewProfileManagement);
bool not_consistent_identity =
- CommandLine::ForCurrentProcess()->HasSwitch(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableAccountConsistency);
int count_args = (is_new_avatar_menu ? 1 : 0) +
(is_new_profile_management ? 1 : 0) +
@@ -116,7 +114,7 @@ State GetProcessState() {
bool CheckFlag(std::string command_switch, State min_state) {
// Individiual flag settings take precedence.
- if (CommandLine::ForCurrentProcess()->HasSwitch(command_switch))
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(command_switch))
return true;
return GetProcessState() >= min_state;
@@ -131,12 +129,13 @@ bool IsEnableAccountConsistency() {
}
bool IsEnableWebBasedSignin() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebBasedSignin) && !IsEnableWebviewBasedSignin();
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableWebBasedSignin) &&
+ !IsEnableWebviewBasedSignin();
}
bool IsEnableWebviewBasedSignin() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableWebviewBasedSignin);
}
@@ -146,7 +145,7 @@ bool IsExtensionsMultiAccount() {
}
bool IsFastUserSwitching() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kFastUserSwitching);
}
« no previous file with comments | « components/signin/core/browser/signin_manager_base.cc ('k') | components/translate/core/browser/translate_download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698