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

Unified Diff: chrome/browser/policy/cloud_policy_cache_base.h

Issue 9599009: Fix infinite refresh of device policy when the TPM gets out of sync with the stateful partition. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added unit test Created 8 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/policy/cloud_policy_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_cache_base.h
diff --git a/chrome/browser/policy/cloud_policy_cache_base.h b/chrome/browser/policy/cloud_policy_cache_base.h
index 73915959e0ec724b0a9dcd038f0ce28f276dbea5..1015b6e7e1955316b02b400383f9d0df34a2ec20 100644
--- a/chrome/browser/policy/cloud_policy_cache_base.h
+++ b/chrome/browser/policy/cloud_policy_cache_base.h
@@ -39,8 +39,9 @@ class CloudPolicyCacheBase : public base::NonThreadSafe {
// Loads persisted policy information.
virtual void Load() = 0;
- // Resets the policy information.
- virtual void SetPolicy(
+ // Resets the policy information. Returns true if |policy| was accepted and
+ // stored.
+ virtual bool SetPolicy(
const enterprise_management::PolicyFetchResponse& policy) = 0;
virtual void SetUnmanaged() = 0;
« no previous file with comments | « no previous file | chrome/browser/policy/cloud_policy_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698