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

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: fix unittest broken by 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
« no previous file with comments | « chrome/common/OWNERS ('k') | ui/native_theme/common_theme.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..176aab26de2326661df6a48861d8117b24976c84 100644
--- a/components/signin/core/common/profile_management_switches.cc
+++ b/components/signin/core/common/profile_management_switches.cc
@@ -46,8 +46,11 @@ bool IsEnableWebBasedSignin() {
}
bool IsFastUserSwitching() {
+ bool use_mirror_promo_menu =
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu) &&
+ !IsNewProfileManagement();
return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kFastUserSwitching);
+ switches::kFastUserSwitching) || use_mirror_promo_menu;
}
bool IsGoogleProfileInfo() {
« no previous file with comments | « chrome/common/OWNERS ('k') | ui/native_theme/common_theme.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698