Chromium Code Reviews| Index: chrome/browser/ui/webui/settings/profile_info_handler.cc |
| diff --git a/chrome/browser/ui/webui/settings/profile_info_handler.cc b/chrome/browser/ui/webui/settings/profile_info_handler.cc |
| index 6d38d2bd6e57b9a4e0a5e160324a48cc45c38dec..da45f8160b6c5fdea6559e6bb4b5e334316be891 100644 |
| --- a/chrome/browser/ui/webui/settings/profile_info_handler.cc |
| +++ b/chrome/browser/ui/webui/settings/profile_info_handler.cc |
| @@ -38,6 +38,7 @@ const char |
| "profile-manages-supervised-users-changed"; |
| const char ProfileInfoHandler::kProfileStatsCountReadyEventName[] = |
| "profile-stats-count-ready"; |
| +const int kAvatarIconSize = 40; |
|
tommycli
2017/03/22 00:00:22
For this particular variable it may need to be a s
dschuyler
2017/03/22 18:16:06
I've instead moved it near the only place it is us
|
| ProfileInfoHandler::ProfileInfoHandler(Profile* profile) |
| : profile_(profile), |
| @@ -214,8 +215,8 @@ ProfileInfoHandler::GetAccountNameAndIcon() const { |
| name = base::UTF16ToUTF8(entry->GetName()); |
| if (entry->IsUsingGAIAPicture() && entry->GetGAIAPicture()) { |
| - gfx::Image icon = |
| - profiles::GetAvatarIconForWebUI(entry->GetAvatarIcon(), true); |
| + gfx::Image icon = profiles::GetSizedAvatarIcon( |
| + entry->GetAvatarIcon(), true, kAvatarIconSize, kAvatarIconSize); |
| icon_url = webui::GetBitmapDataUrl(icon.AsBitmap()); |
| } else { |
| icon_url = profiles::GetDefaultAvatarIconUrl(entry->GetAvatarIconIndex()); |