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

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

Issue 11415094: Split UserCloudPolicyManager implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bring back ProxyPolicyProvider, fix local_state policy provider, fix Joao's fine CloudPolicyTest. Created 8 years, 1 month 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: 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 2ead103e05b41802de4a88ef7a71f897d5eca81b..cc673c082a32d1593fa1e890045d8ccbdbcfcaf2 100644
--- a/chrome/browser/policy/cloud_policy_store.h
+++ b/chrome/browser/policy/cloud_policy_store.h
@@ -89,32 +89,17 @@ class CloudPolicyStore {
// Otherwise, OnStoreError() reports the reason for 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);
// Removes the specified observer.
void RemoveObserver(Observer* observer);
- // Factory method to create a CloudPolicyStore appropriate for the current
- // platform, for storing user policy for the user associated with the passed
- // |profile|. Implementation is defined in the individual platform store
- // files.
- static scoped_ptr<CloudPolicyStore> CreateUserPolicyStore(
- Profile* profile,
- bool force_immediate_policy_load);
-
protected:
// Invokes the corresponding callback on all registered observers.
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_;

Powered by Google App Engine
This is Rietveld 408576698