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

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: 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_manager.h
diff --git a/chrome/browser/policy/cloud_policy_manager.h b/chrome/browser/policy/cloud_policy_manager.h
index 82b73c6071bd9a6b9cf5a86002f01eda643f2328..93aa86ef5266e0efbbf75824d09f09911d0935c7 100644
--- a/chrome/browser/policy/cloud_policy_manager.h
+++ b/chrome/browser/policy/cloud_policy_manager.h
@@ -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_;
Andrew T Wilson (Slow) 2012/11/21 17:34:24 Since we don't own this, and this will likely get
Mattias Nissler (ping if slow) 2012/11/22 20:51:59 I changed the code to NULL store_ in Shutdown() an
scoped_ptr<CloudPolicyClient> client_;
scoped_ptr<CloudPolicyService> service_;
scoped_ptr<CloudPolicyRefreshScheduler> refresh_scheduler_;

Powered by Google App Engine
This is Rietveld 408576698