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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_policy_store.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/chromeos/policy/device_local_account_policy_store.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_store.cc b/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
index a56b1b098e8f94e4997885394f21a33b196e3286..74f3772af9ec2f544fef3ff7b77d6414bcab2187 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
@@ -150,7 +150,7 @@ void DeviceLocalAccountPolicyStore::Validate(
scoped_ptr<UserCloudPolicyValidator> validator(
UserCloudPolicyValidator::Create(policy_response.Pass(),
background_task_runner()));
- validator->ValidateUsername(account_id_, false);
+ validator->ValidateUsername(user_manager::UserID::FromUserEmail(account_id_), false);
validator->ValidatePolicyType(dm_protocol::kChromePublicAccountPolicyType);
// The timestamp is verified when storing a new policy downloaded from the
// server but not when loading a cached policy from disk.

Powered by Google App Engine
This is Rietveld 408576698