• Jan Krcal's avatar
    [Avatar button] Show identity animation for local avatars as well · fff2ee91
    Jan Krcal authored
    This CL makes sure we show identity animation even for users that have
    selected non-default local Chrome avatars (being only signed-in or
    syncing).
    
    To this end, this CL replaces the previous function GetGaiaImage() by
    GetUserIdentityImage() which only tries to return the image of the
    unconsented primary account (on which success we block showing the
    identity animation). The guarding logic whether we actually show the
    identity image is moved into GetAvatarImage().
    
    Bug: 967317
    Change-Id: Ic16c9a732701bf7e999aecd6b4cb2b2d5013c4b1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849371
    Commit-Queue: Jan Krcal <jkrcal@chromium.org>
    Commit-Queue: Thomas Tangl <tangltom@chromium.org>
    Reviewed-by: default avatarThomas Tangl <tangltom@chromium.org>
    Auto-Submit: Jan Krcal <jkrcal@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#704151}
    fff2ee91
avatar_toolbar_button.h 5.99 KB