Description[Mac] Don't pre-emptively update the profile name in the avatar bubble after an update.
If the user entered name is accepted and saved, then the entire view is refreshed and the
new name is displayed. Automatically committing the name is too eager, since
UpdateProfileName might reject the name in some cases (if it's identical to the original
one), and we might ignore the display rules around single profiles and "You".
BUG=428683
TEST=Start Chrome with --enable-new-avatar-menu. Make sure you only have one, brand new
profile. Open chrome://settings and in the avatar bubble (which should display "You")
enter the same name that the profile has in chrome://settings (like Person 1). The name
displayed in the bubble should stay as "You"
Committed: https://crrev.com/b9ebd3861a8c8aad6e91c8fd43f32d917d2e380e
Cr-Commit-Position: refs/heads/master@{#302509}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|