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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 900223004: [Mac, Win] The fast user switcher should use the small, non-high res default avatars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index 86f0e2a590bb1d60e19fe17f9ee938e53ce65e7b..2bfd6847ec3a7cceb7efe8dd8dfd5fe9ef42ba8c 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -1247,8 +1247,15 @@ views::View* ProfileChooserView::CreateOtherProfilesView(
const AvatarMenu::Item& item = avatar_menu_->GetItemAt(index);
const int kSmallImageSide = 32;
+ // Use the low-res, small default avatars in the fast user switcher, like
+ // we do in the menu bar.
+ gfx::Image itemIcon;
+ bool isRectangle;
sky 2015/02/06 01:03:02 You've been writing too match mac code: item_icon
noms (inactive) 2015/02/06 15:53:38 Eeeeek, losing my mind. Sorry about that. Done!
+ AvatarMenu::GetImageForMenuButton(
+ item.profile_path, &itemIcon, &isRectangle);
+
gfx::Image image = profiles::GetSizedAvatarIcon(
- item.icon, true, kSmallImageSide, kSmallImageSide);
+ itemIcon, true, kSmallImageSide, kSmallImageSide);
views::LabelButton* button = new BackgroundColorHoverButton(
this,
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698