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

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

Issue 1972033002: Simplify some old avatar menu button code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reinstate ash browser test fix Created 4 years, 7 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
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 e00db230f41f5a470983131aa694c086c5f52011..8ea67acbe510252737fdf75ce9c6e8f7145ef1fc 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -1475,9 +1475,7 @@ views::View* ProfileChooserView::CreateOtherProfilesView(
// Use the low-res, small default avatars in the fast user switcher, like
// we do in the menu bar.
gfx::Image item_icon;
- bool is_rectangle;
- AvatarMenu::GetImageForMenuButton(
- item.profile_path, &item_icon, &is_rectangle);
+ AvatarMenu::GetImageForMenuButton(item.profile_path, &item_icon);
gfx::Image image = profiles::GetSizedAvatarIcon(
item_icon, true, kSmallImageSide, kSmallImageSide);

Powered by Google App Engine
This is Rietveld 408576698