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

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

Issue 10693022: Add support for loading user cloud policy on desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed redundant #ifdef OS_CHROMEOS guard 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
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 224fcea80c63759179c71d58830874b88f703dbf..080e50e1d9b67bf8bd72384f555bccdd6c67154e 100644
--- a/chrome/browser/policy/cloud_policy_store.h
+++ b/chrome/browser/policy/cloud_policy_store.h
@@ -12,6 +12,8 @@
#include "chrome/browser/policy/policy_map.h"
#include "chrome/browser/policy/proto/device_management_backend.pb.h"
+class Profile;
+
namespace policy {
// Defines the low-level interface used by the cloud policy code to:
@@ -91,6 +93,12 @@ class CloudPolicyStore {
// 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);
+
protected:
// Invokes the corresponding callback on all registered observers.
void NotifyStoreLoaded();

Powered by Google App Engine
This is Rietveld 408576698