Index: chrome/browser/policy/user_cloud_policy_store.h |
diff --git a/chrome/browser/policy/user_cloud_policy_store.h b/chrome/browser/policy/user_cloud_policy_store.h |
index 95e8d0fac18783871cbe63ec0ea3345291d80442..e4e4a3b4e98265a92c93626797d38ace3ce37a13 100644 |
--- a/chrome/browser/policy/user_cloud_policy_store.h |
+++ b/chrome/browser/policy/user_cloud_policy_store.h |
@@ -25,19 +25,22 @@ class UserCloudPolicyStore : public UserCloudPolicyStoreBase { |
UserCloudPolicyStore(Profile* profile, const FilePath& policy_file); |
virtual ~UserCloudPolicyStore(); |
+ // Factory method for creating a UserCloudPolicyStore for |profile|. |
+ static scoped_ptr<UserCloudPolicyStore> Create(Profile* profile); |
Joao da Silva
2012/11/21 17:06:34
Profile needs to be forward-declared after the dec
Mattias Nissler (ping if slow)
2012/11/22 20:51:59
Done.
|
+ |
// Loads policy immediately on the current thread. |
virtual void LoadImmediately(); |
Joao da Silva
2012/11/21 17:06:34
Mention that this is virtual for mocks.
Mattias Nissler (ping if slow)
2012/11/22 20:51:59
Done.
|
+ // Deletes any existing policy blob and notifies observers via OnStoreLoaded() |
+ // that the blob has changed. Virtual for mocks. |
+ virtual void Clear(); |
+ |
// CloudPolicyStore implementation. |
virtual void Load() OVERRIDE; |
virtual void Store( |
const enterprise_management::PolicyFetchResponse& policy) OVERRIDE; |
- protected: |
- virtual void RemoveStoredPolicy() OVERRIDE; |
- |
private: |
- |
// Callback invoked when a new policy has been loaded from disk. If |
// |validate_in_background| is true, then policy is validated via a background |
// thread. |