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

Unified Diff: chrome/browser/supervised_user/child_accounts/child_account_service.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/child_accounts/child_account_service.cc
diff --git a/chrome/browser/supervised_user/child_accounts/child_account_service.cc b/chrome/browser/supervised_user/child_accounts/child_account_service.cc
index 673849d66324dbd9b0242da9a00358600e463b7f..661486ad956caf0bf8cf9b78329e07e1f6ab842a 100644
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.cc
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.cc
@@ -103,7 +103,7 @@ void ChildAccountService::SetIsChildAccount(bool is_child_account) {
if (profile_->IsChild() != is_child_account) {
if (is_child_account) {
profile_->GetPrefs()->SetString(prefs::kSupervisedUserId,
- supervised_users::kChildAccountSUID);
+ supervised_users::GetChildAccountSUID().GetUserEmail());
} else {
profile_->GetPrefs()->ClearPref(prefs::kSupervisedUserId);
}

Powered by Google App Engine
This is Rietveld 408576698