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

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

Issue 340723002: Revert 277793 "Enable consistent identity on android platform by..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2056/src/
Patch Set: 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
===================================================================
--- 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);
}

Powered by Google App Engine
This is Rietveld 408576698