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

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

Issue 10854213: Added UserCloudPolicyManager::ShutdownAndRemovePolicy() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/policy/cloud_policy_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698