Commit a3330574 authored by Thomas Tangl's avatar Thomas Tangl Committed by Commit Bot

Fix case when showing promo account in avatar button

The condition of whether a user changed their profile
avatar explicitly is changed.

Bug: 853363
Change-Id: I1e9bc3928b74f3dbb613521b492561455a7b104b
Reviewed-on: https://chromium-review.googlesource.com/1120065Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Thomas Tangl <tangltom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#571903}
parent b1175d1d
......@@ -267,7 +267,7 @@ gfx::Image AvatarToolbarButton::GetIconImageFromProfile() const {
// If the user isn't signed in and the profile icon wasn't changed explicitly,
// try to use the first account icon of the sync promo.
if (!SigninManagerFactory::GetForProfile(profile_)->IsAuthenticated() &&
entry->GetAvatarIconIndex() == 0) {
entry->IsUsingDefaultAvatar()) {
std::vector<AccountInfo> promo_accounts =
signin_ui_util::GetAccountsForDicePromos(profile_);
if (!promo_accounts.empty()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment