DescriptionStop using the old-style profile names when using --new-profile-management
Instead use:
- "You" for a single, local profile
- The custom name chosen by the user, if the user renames the profile
- The user's GAIA first name for signed in profiles
- Person %n in all other cases.
This will be used consistently in both by the avatar menu button, and the avatar bubble.
Bonus changes to make this work:
- changed the name and signature of profiles::GetActiveProfileDisplayName to
GetAvatarNameForProfile, to make sure it's not accidentally used
outside of the avatar button related stuff, with baffling results ("Why is the profile name 'You'?)
- the Win avatar button now listens to ProfileInfoCache changes (just like the Mac one does), so that if a new profile is added, the avatar button changes from displaying 'You' to the actual profile name.
BUG=312352
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253588
Patch Set 1 : #Patch Set 2 : whitespace #
Total comments: 13
Patch Set 3 : review comments #
Total comments: 2
Patch Set 4 : fix sscanf import #Patch Set 5 : moved new tests behind no-android/no-cros ifdef #Messages
Total messages: 27 (0 generated)
|