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

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

Issue 235813002: Add profile-switches to signin-internals; move switches to component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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
Index: components/signin/core/common/profile_management_switches.cc
diff --git a/chrome/common/profile_management_switches.cc b/components/signin/core/common/profile_management_switches.cc
similarity index 93%
rename from chrome/common/profile_management_switches.cc
rename to components/signin/core/common/profile_management_switches.cc
index 1c837441d32b655bd4dc31f2f5bd57f4c0e06708..e3ed9bec8fa7e88ceac1f2c73bea27b45f274556 100644
--- a/chrome/common/profile_management_switches.cc
+++ b/components/signin/core/common/profile_management_switches.cc
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/profile_management_switches.h"
+#include "components/signin/core/common/profile_management_switches.h"
#include "base/command_line.h"
#include "base/metrics/field_trial.h"
-#include "chrome/common/chrome_switches.h"
+#include "components/signin/core/common/signin_switches.h"
namespace {
@@ -45,12 +45,13 @@ bool IsEnableWebBasedSignin() {
return CheckProfileManagementFlag(switches::kEnableWebBasedSignin, false);
}
-bool IsGoogleProfileInfo() {
- return CheckProfileManagementFlag(switches::kGoogleProfileInfo, true);
+bool IsFastUserSwitching() {
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kFastUserSwitching);
}
-bool IsNewProfileManagement() {
- return CheckProfileManagementFlag(switches::kNewProfileManagement, true);
+bool IsGoogleProfileInfo() {
+ return CheckProfileManagementFlag(switches::kGoogleProfileInfo, true);
}
bool IsNewAvatarMenu() {
@@ -59,15 +60,14 @@ bool IsNewAvatarMenu() {
return is_new_avatar_menu || IsNewProfileManagement();
}
+bool IsNewProfileManagement() {
+ return CheckProfileManagementFlag(switches::kNewProfileManagement, true);
+}
+
bool IsNewProfileManagementPreviewEnabled() {
bool is_new_avatar_menu =
CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu);
return is_new_avatar_menu && IsNewProfileManagement();
}
-bool IsFastUserSwitching() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kFastUserSwitching);
-}
-
} // namespace switches
« no previous file with comments | « components/signin/core/common/profile_management_switches.h ('k') | components/signin/core/common/signin_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698