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

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

Issue 323133005: Enable consistent identity on android platform by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 6 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 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);
}

Powered by Google App Engine
This is Rietveld 408576698