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

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: fixes 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 9ab06368fb293e2159c60b1dc7dcab1d211ca0ea..ada1ac30c02f2d5dd1976af3b91a1b6d45dcd594 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -1472,9 +1472,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