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

Unified Diff: components/policy/core/common/cloud/cloud_policy_store.h

Issue 1150373002: platformKeys: Add policy and corporate key tagging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@key_perm
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: components/policy/core/common/cloud/cloud_policy_store.h
diff --git a/components/policy/core/common/cloud/cloud_policy_store.h b/components/policy/core/common/cloud/cloud_policy_store.h
index 9a86f9128caebd2f56c9d1d11efde7abf79f1381..4ab1c9f701591d4927be7a95daa08030702840b1 100644
--- a/components/policy/core/common/cloud/cloud_policy_store.h
+++ b/components/policy/core/common/cloud/cloud_policy_store.h
@@ -73,6 +73,10 @@ class POLICY_EXPORT CloudPolicyStore {
return policy_.get();
}
bool is_managed() const {
+ LOG(ERROR) << "policy " << policy_;
+ if (policy_)
+ LOG(ERROR) << "state " << policy_->state() << " should be "
+ << enterprise_management::PolicyData::ACTIVE;
return policy_.get() &&
policy_->state() == enterprise_management::PolicyData::ACTIVE;
}

Powered by Google App Engine
This is Rietveld 408576698