• noms's avatar
    [Mac] Don't pre-emptively update the profile name in the avatar bubble after an update. · b9ebd386
    noms authored
    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"
    
    Review URL: https://codereview.chromium.org/698993002
    
    Cr-Commit-Position: refs/heads/master@{#302509}
    b9ebd386
profile_chooser_controller.mm 87.3 KB