Index: chrome/browser/policy/cloud_policy_store.h |
diff --git a/chrome/browser/policy/cloud_policy_store.h b/chrome/browser/policy/cloud_policy_store.h |
index 080e50e1d9b67bf8bd72384f555bccdd6c67154e..c79610bc6b62928be796bcea707bd7be0e69f8bc 100644 |
--- a/chrome/browser/policy/cloud_policy_store.h |
+++ b/chrome/browser/policy/cloud_policy_store.h |
@@ -87,6 +87,10 @@ class CloudPolicyStore { |
// failure. |
virtual void Load() = 0; |
+ // Deletes any existing policy blob and notifies observers via OnStoreLoaded() |
+ // that the blob has changed. Virtual for mocks. |
+ virtual void Clear(); |
+ |
// Registers an observer to be notified when policy changes. |
void AddObserver(Observer* observer); |
@@ -104,6 +108,9 @@ class CloudPolicyStore { |
void NotifyStoreLoaded(); |
void NotifyStoreError(); |
+ // Invoked by Clear() to remove stored policy. |
+ virtual void RemoveStoredPolicy() = 0; |
+ |
// Decoded version of the currently effective policy. |
PolicyMap policy_map_; |