| Index: chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
|
| diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc b/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
|
| index 4356cc970ad7c564d2746bcdf07f30f93088bfd4..590c386a8f61dfe283c14f05fbcc5fd43edeeb11 100644
|
| --- a/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
|
| +++ b/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
|
| @@ -197,7 +197,8 @@ void UserCloudPolicyStoreChromeOS::Store(
|
| void UserCloudPolicyStoreChromeOS::Load() {
|
| // Cancel all pending requests.
|
| weak_factory_.InvalidateWeakPtrs();
|
| - session_manager_client_->RetrieveUserPolicy(
|
| + session_manager_client_->RetrievePolicyForUser(
|
| + username_,
|
| base::Bind(&UserCloudPolicyStoreChromeOS::OnPolicyRetrieved,
|
| weak_factory_.GetWeakPtr()));
|
| }
|
| @@ -244,8 +245,10 @@ void UserCloudPolicyStoreChromeOS::OnPolicyToStoreValidated(
|
| return;
|
| }
|
|
|
| - session_manager_client_->StoreUserPolicy(
|
| + session_manager_client_->StorePolicyForUser(
|
| + username_,
|
| policy_blob,
|
| + validator->policy()->new_public_key(),
|
| base::Bind(&UserCloudPolicyStoreChromeOS::OnPolicyStored,
|
| weak_factory_.GetWeakPtr()));
|
| }
|
|
|