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

Unified Diff: chrome/browser/policy/profile_policy_connector.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/policy/profile_policy_connector.cc
diff --git a/chrome/browser/policy/profile_policy_connector.cc b/chrome/browser/policy/profile_policy_connector.cc
index 12b5b44e65566fd688605f7ba6298f9cdcd9f62b..9e8d743981929a0fe24a51969e34a774aa611b15 100644
--- a/chrome/browser/policy/profile_policy_connector.cc
+++ b/chrome/browser/policy/profile_policy_connector.cc
@@ -110,7 +110,7 @@ void ProfilePolicyConnector::Init(
is_primary_user_ =
user == user_manager::UserManager::Get()->GetPrimaryUser();
special_user_policy_provider_ = DeviceLocalAccountPolicyProvider::Create(
- user->email(),
+ user->GetUserID(),
connector->GetDeviceLocalAccountPolicyService());
}
if (special_user_policy_provider_) {

Powered by Google App Engine
This is Rietveld 408576698