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

Unified Diff: chrome/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: preemptive nits 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: chrome/common/profile_management_switches.cc
diff --git a/chrome/common/profile_management_switches.cc b/chrome/common/profile_management_switches.cc
index a7fcd31a465c742b8507c2b530045a750e188ee1..d281e59cbf74358717ffd5a30a4cb1c8ec4e2e4c 100644
--- a/chrome/common/profile_management_switches.cc
+++ b/chrome/common/profile_management_switches.cc
@@ -60,8 +60,11 @@ bool IsNewProfileManagement() {
}
bool IsFastUserSwitching() {
+ bool is_just_new_menu =
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu) &&
+ !IsNewProfileManagement();
return CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kFastUserSwitching);
+ switches::kFastUserSwitching) || is_just_new_menu;
}
} // namespace switches

Powered by Google App Engine
This is Rietveld 408576698