• WC Leung's avatar
    Migrate avatar icon accessors to ProfileAttributesStorage · 484920e5
    WC Leung authored
    GetAvatarIcon, GetAvatarIconIndex, SetAvatarIconIndex, and
    GetHighResAvatar are migrated to ProfileAttributesEntry. Old accessors
    are still here (with some extra comment) because they are still used by
    ProfileInfoCache tests.
    
    Two high-res avatar tests are migrated and one test about avatar icon
    index is added.
    
    An existing observer notifier method in ProfileAttributesStorage is
    changed because it was not good enough.
    
    Bug: 305720
    Change-Id: I93b3e765cd1131f7ddb905c884db6d23390786bb
    Reviewed-on: https://chromium-review.googlesource.com/694062Reviewed-by: default avataranthonyvd <anthonyvd@chromium.org>
    Commit-Queue: WC Leung <lwchkg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#505876}
    484920e5
profile_attributes_storage.cc 16.1 KB