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

Unified Diff: chrome/browser/chromeos/profiles/profile_list_chromeos.cc

Issue 2762173003: Remove IsNewProfileManagement and EnableNewProfileManagementForTesting (Closed)
Patch Set: Fix compile (add back an include) Created 3 years, 9 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/chromeos/profiles/profile_list_chromeos.cc
diff --git a/chrome/browser/chromeos/profiles/profile_list_chromeos.cc b/chrome/browser/chromeos/profiles/profile_list_chromeos.cc
index 1a7d6beba01084c248526f6f0c414585948ba876..35b46bf087890453fd923e2e3a0aad6c80bf6cee 100644
--- a/chrome/browser/chromeos/profiles/profile_list_chromeos.cc
+++ b/chrome/browser/chromeos/profiles/profile_list_chromeos.cc
@@ -15,7 +15,6 @@
#include "chrome/browser/profiles/profile_avatar_icon_util.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/common/chrome_switches.h"
-#include "components/signin/core/common/profile_management_switches.h"
#include "components/user_manager/user_manager.h"
// static
@@ -69,11 +68,6 @@ void ProfileListChromeOS::RebuildMenu() {
user_manager::User* user = users[user_index_it->second];
gfx::Image icon = gfx::Image(user->GetImage());
- if (!switches::IsNewProfileManagement() && !icon.IsEmpty()) {
- // old avatar menu uses resized-small images
- icon = profiles::GetAvatarIconForMenu(icon, true);
- }
-
std::unique_ptr<AvatarMenu::Item> item(
new AvatarMenu::Item(items_.size(), entry->GetPath(), icon));
item->name = user->GetDisplayName();

Powered by Google App Engine
This is Rietveld 408576698