[Profiles] Improve the display name for default profiles.
If a profile is signed in, but has a default name (because this is after enabling the new profiles UI but the Gaia profile name hasn't been downloaded) display the email address rather than the default profile name. It's one step better. BUG=412809 TEST=Start Chrome with an empty user data dir and --disable-new-avatar-menu. Create two profiles, and sign one of them in with a profile that has a clean sync (or reset the sync data after signin). Make sure that the last active profile is the *not* signed in one (so close all the browser windows for the signed in profile). Restart Chrome with --enable-new-avatar-menu. You should be in the local profile. Choose "Switch person" from the avatar menu. The user manager should display the other profile's email address in the pod. Once you launch that profile, the name should update to the gaia name. Review URL: https://codereview.chromium.org/556003007 Cr-Commit-Position: refs/heads/master@{#295166}
Showing
Please register or sign in to comment