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 |