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

Unified Diff: chrome/browser/profiles/profile_list_desktop.cc

Issue 235833002: [Mac] Redesign the avatar bubble UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest broken by rebase Created 6 years, 8 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/profiles/profile_list_desktop.cc
diff --git a/chrome/browser/profiles/profile_list_desktop.cc b/chrome/browser/profiles/profile_list_desktop.cc
index 21714be1f3244496cf98397b5cc384e773b36e89..a8a3075be4d3b75af795482c2ddd3f63e0d1e67a 100644
--- a/chrome/browser/profiles/profile_list_desktop.cc
+++ b/chrome/browser/profiles/profile_list_desktop.cc
@@ -43,16 +43,7 @@ void ProfileListDesktop::RebuildMenu() {
omitted_item_count_++;
continue;
}
- bool is_gaia_picture =
- profile_info_->IsUsingGAIAPictureOfProfileAtIndex(i) &&
- profile_info_->GetGAIAPictureOfProfileAtIndex(i);
-
gfx::Image icon = profile_info_->GetAvatarIconOfProfileAtIndex(i);
- if (!switches::IsNewProfileManagement()) {
- // The old avatar menu uses resized-small images.
- icon = profiles::GetAvatarIconForMenu(icon, is_gaia_picture);
- }
-
AvatarMenu::Item* item = new AvatarMenu::Item(i - omitted_item_count_,
i,
icon);

Powered by Google App Engine
This is Rietveld 408576698