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