diff options
author | noms@chromium.org <noms@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-23 00:08:54 +0000 |
---|---|---|
committer | noms@chromium.org <noms@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-23 00:08:54 +0000 |
commit | e49d85d962307e1df80fadcb49b369eaaf00b28c (patch) | |
tree | 332362f07bbc32b21f83dd417fd33c7e0aa95f33 /components/signin | |
parent | a20110e92a96dcb90038f3904d3ddacb56a8e384 (diff) | |
download | chromium_src-e49d85d962307e1df80fadcb49b369eaaf00b28c.zip chromium_src-e49d85d962307e1df80fadcb49b369eaaf00b28c.tar.gz chromium_src-e49d85d962307e1df80fadcb49b369eaaf00b28c.tar.bz2 |
[Mac] Redesign the avatar bubble UI. Again.
Mocks: https://docs.google.com/a/google.com/file/d/0BxMIIGI80eU-VW16NEloUFdyaXc/edit
This CL does not implement the "round" avatar icon, nor the top-left corner
info button, but it does set up the layout for the other elements.
There is also an intermediate flag now, --new-avatar-menu, which enables
the new UI but not the mirror-specific features (such as account management
or the user manager). In this menu we always display the fast user switcher.
BUG=353398
Review URL: https://codereview.chromium.org/235833002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265432 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/signin')
-rw-r--r-- | components/signin/core/common/profile_management_switches.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/signin/core/common/profile_management_switches.cc b/components/signin/core/common/profile_management_switches.cc index f15e939..176aab2 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() { |