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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_policy_store.cc

Issue 2801993002: Abandon user sign in when policy is retrieved before session started (Closed)
Patch Set: Nit Created 3 years, 8 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 31f42df64268d730dab40792c82127a1b18fd5f1..ae00ed28c5202f84f903adb750c006abc31ed0e0 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_store.cc
@@ -59,7 +59,8 @@ void DeviceLocalAccountPolicyStore::LoadImmediately() {
const std::string policy_blob =
session_manager_client_->BlockingRetrieveDeviceLocalAccountPolicy(
account_id_);
- ValidateLoadedPolicyBlob(false /*validate_in_background*/, policy_blob);
+ ValidateLoadedPolicyBlob(false /*validate_in_background*/, policy_blob,
+ chromeos::SessionManagerClient::SUCCESS);
emaxx 2017/04/18 15:03:16 It's a bit weird that the asynchronous method (Ret
igorcov 2017/04/20 14:52:29 Changed to have the same pattern for all.
}
void DeviceLocalAccountPolicyStore::Store(
@@ -74,7 +75,9 @@ void DeviceLocalAccountPolicyStore::Store(
void DeviceLocalAccountPolicyStore::ValidateLoadedPolicyBlob(
bool validate_in_background,
- const std::string& policy_blob) {
+ const std::string& policy_blob,
+ const chromeos::SessionManagerClient::RetrievePolicyResponseType&
+ response_type) {
if (policy_blob.empty()) {
status_ = CloudPolicyStore::STATUS_LOAD_ERROR;
NotifyStoreError();

Powered by Google App Engine
This is Rietveld 408576698