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

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

Issue 11415094: Split UserCloudPolicyManager implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DeviceCloudPolicyManagerChromeOSTest.EnrolledDevice failure. 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
« no previous file with comments | « chrome/browser/policy/cloud_policy_browsertest.cc ('k') | chrome/browser/policy/cloud_policy_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_manager.h
diff --git a/chrome/browser/policy/cloud_policy_manager.h b/chrome/browser/policy/cloud_policy_manager.h
index 82b73c6071bd9a6b9cf5a86002f01eda643f2328..aa53d5a3eb8e1daf706629024af70443e6d9b41f 100644
--- a/chrome/browser/policy/cloud_policy_manager.h
+++ b/chrome/browser/policy/cloud_policy_manager.h
@@ -22,9 +22,9 @@ class CloudPolicyRefreshScheduler;
class CloudPolicyService;
// CloudPolicyManager is the main switching central between cloud policy and the
-// upper layers of the policy stack. It owns CloudPolicyStore,
-// CloudPolicyClient, and CloudPolicyService, is responsible for receiving and
-// keeping policy from the cloud and exposes the decoded policy via the
+// upper layers of the policy stack. It owns CloudPolicyClient and
+// CloudPolicyService, is responsible for receiving and keeping policy from the
+// cloud and exposes the decoded policy from a CloudPolicyStore via the
// ConfigurationPolicyProvider interface.
//
// This class contains the base functionality, there are subclasses that add
@@ -33,14 +33,14 @@ class CloudPolicyService;
class CloudPolicyManager : public ConfigurationPolicyProvider,
public CloudPolicyStore::Observer {
public:
- explicit CloudPolicyManager(scoped_ptr<CloudPolicyStore> store);
+ explicit CloudPolicyManager(CloudPolicyStore* store);
virtual ~CloudPolicyManager();
CloudPolicyClient* cloud_policy_client() { return client_.get(); }
const CloudPolicyClient* cloud_policy_client() const { return client_.get(); }
- CloudPolicyStore* cloud_policy_store() { return store_.get(); }
- const CloudPolicyStore* cloud_policy_store() const { return store_.get(); }
+ CloudPolicyStore* cloud_policy_store() { return store_; }
+ const CloudPolicyStore* cloud_policy_store() const { return store_; }
CloudPolicyService* cloud_policy_service() { return service_.get(); }
const CloudPolicyService* cloud_policy_service() const {
@@ -76,7 +76,7 @@ class CloudPolicyManager : public ConfigurationPolicyProvider,
// Completion handler for policy refresh operations.
void OnRefreshComplete();
- scoped_ptr<CloudPolicyStore> store_;
+ CloudPolicyStore* store_;
scoped_ptr<CloudPolicyClient> client_;
scoped_ptr<CloudPolicyService> service_;
scoped_ptr<CloudPolicyRefreshScheduler> refresh_scheduler_;
« no previous file with comments | « chrome/browser/policy/cloud_policy_browsertest.cc ('k') | chrome/browser/policy/cloud_policy_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698