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

Unified Diff: chrome/browser/supervised_user/chromeos/manager_password_service_factory.cc

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/supervised_user/chromeos/manager_password_service_factory.cc
diff --git a/chrome/browser/supervised_user/chromeos/manager_password_service_factory.cc b/chrome/browser/supervised_user/chromeos/manager_password_service_factory.cc
index e7fb7e8ebb9277c5b1b113c0fbdecdfaa02076e4..dbede67772b4974d7c131fa1cedeabc997f56481 100644
--- a/chrome/browser/supervised_user/chromeos/manager_password_service_factory.cc
+++ b/chrome/browser/supervised_user/chromeos/manager_password_service_factory.cc
@@ -47,10 +47,10 @@ KeyedService* ManagerPasswordServiceFactory::BuildServiceInstanceFor(
const user_manager::User* user =
ProfileHelper::Get()->GetUserByProfile(profile);
if (ChromeUserManager::Get()->GetSupervisedUserManager()->HasSupervisedUsers(
- user->email())) {
+ user->GetUserID())) {
ManagerPasswordService* result = new ManagerPasswordService();
result->Init(
- user->email(),
+ user->GetUserID(),
SupervisedUserSyncServiceFactory::GetForProfile(profile),
SupervisedUserSharedSettingsServiceFactory::GetForBrowserContext(
profile));

Powered by Google App Engine
This is Rietveld 408576698