Additional icon fixes for avatar toolbar button
This change: * Displays the generic avatar icon instead of profile icon when there's only one non-signed-in user. This matches the current AvatarButton behavior. * Displays the guest badge instead of the generic avatar icon when the user is in guest mode. * Replaces the avatar icon getter to use entry->GetAvatarIcon() instead of AvatarMenu::GetImageForMenuButton. The image retrieved for MenuButton was non-square and didn't fill the entire circle icon. Now the avatar profile icon is instead cropped and fills the circle. This matches the icons displayed in ProfileChooserView. Bug: chromium:822070 Change-Id: I3599ca708e7f866d9c2f437f33c0d8cc141f5c13 Reviewed-on: https://chromium-review.googlesource.com/1026093Reviewed-by:Bret Sepulveda <bsep@chromium.org> Commit-Queue: Peter Boström <pbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#553370}
Showing
Please register or sign in to comment