Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1383)

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm

Issue 882113003: [Mac] Always use the small, non-high res default avatars in the People menu bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
index 38382323c8e00ebf1a2a3be61fd47b096f8c8b26..e455b2f4a8e1d9066f380846e57e34bd8f63dc31 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
@@ -133,7 +133,13 @@ class Observer : public chrome::BrowserListObserver,
if (dock) {
[item setIndentationLevel:1];
} else {
- gfx::Image itemIcon = itemData.icon;
+ gfx::Image itemIcon;
+ bool isRectangle;
+ // Always use the low-res, small default avatars in the menu.
+ AvatarMenu::GetImageForMenuButton(itemData.profile_path,
+ &itemIcon,
+ &isRectangle);
+
// The image might be too large and need to be resized (i.e. if this is
// a signed-in user using the GAIA profile photo).
if (itemIcon.Width() > profiles::kAvatarIconWidth ||
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698