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

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

Issue 235833002: [Mac] Redesign the avatar bubble UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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/components/signin/core/common/profile_management_switches.cc b/components/signin/core/common/profile_management_switches.cc
index f15e93985ad89340f7efd86d57ab9abe28a25ab5..6a5f6fd65bd24efe69f2d6fa103f1a2ccb7c8bd3 100644
--- a/components/signin/core/common/profile_management_switches.cc
+++ b/components/signin/core/common/profile_management_switches.cc
@@ -45,11 +45,6 @@ bool IsEnableWebBasedSignin() {
return CheckProfileManagementFlag(switches::kEnableWebBasedSignin, false);
}
-bool IsFastUserSwitching() {
- return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kFastUserSwitching);
-}
-
bool IsGoogleProfileInfo() {
return CheckProfileManagementFlag(switches::kGoogleProfileInfo, true);
}
@@ -70,4 +65,12 @@ bool IsNewProfileManagementPreviewEnabled() {
return is_new_avatar_menu && IsNewProfileManagement();
}
+bool IsFastUserSwitching() {
+ bool is_just_new_menu =
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu) &&
+ !IsNewProfileManagement();
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kFastUserSwitching) || is_just_new_menu;
+}
+
} // namespace switches

Powered by Google App Engine
This is Rietveld 408576698