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 92bc4a0305ce2d5936db37bec89693669bc52b5c..d154d4412f0bd5dc96672d5774bb893946709184 100644 |
--- a/chrome/browser/chromeos/profiles/profile_list_chromeos.cc |
+++ b/chrome/browser/chromeos/profiles/profile_list_chromeos.cc |
@@ -13,6 +13,7 @@ |
#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" |
// static |
ProfileList* ProfileList::Create(ProfileInfoInterface* profile_cache) { |
@@ -51,8 +52,7 @@ void ProfileListChromeOS::RebuildMenu() { |
ProfileHelper::GetProfilePathByUserIdHash((*it)->username_hash())); |
gfx::Image icon = gfx::Image((*it)->GetImage()); |
- if (!CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kNewProfileManagement) && !icon.IsEmpty()) { |
+ if (!switches::IsNewProfileManagement() && !icon.IsEmpty()) { |
// old avatar menu uses resized-small images |
icon = profiles::GetAvatarIconForMenu(icon, true); |
} |