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

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

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 | « chrome/browser/policy/cloud_policy_store.h ('k') | chrome/browser/policy/mock_cloud_policy_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_store.cc
diff --git a/chrome/browser/policy/cloud_policy_store.cc b/chrome/browser/policy/cloud_policy_store.cc
index 88ea9c49bd6ca3658d5dafb004e122b552760599..44de6551966d1527db9431cd3baf7ef9f317e8cc 100644
--- a/chrome/browser/policy/cloud_policy_store.cc
+++ b/chrome/browser/policy/cloud_policy_store.cc
@@ -15,6 +15,13 @@ CloudPolicyStore::CloudPolicyStore()
CloudPolicyStore::~CloudPolicyStore() {}
+void CloudPolicyStore::Clear() {
+ RemoveStoredPolicy();
+ policy_.reset();
+ policy_map_.Clear();
+ NotifyStoreLoaded();
+}
+
void CloudPolicyStore::AddObserver(CloudPolicyStore::Observer* observer) {
observers_.AddObserver(observer);
}
« no previous file with comments | « chrome/browser/policy/cloud_policy_store.h ('k') | chrome/browser/policy/mock_cloud_policy_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698