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

Side by Side Diff: chrome/browser/policy/cloud/cloud_policy_manager.h

Issue 98433003: Fixed crash in CloudPolicyManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_MANAGER_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_MANAGER_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_MANAGER_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 protected: 71 protected:
72 // Check whether fully initialized and if so, publish policy by calling 72 // Check whether fully initialized and if so, publish policy by calling
73 // ConfigurationPolicyStore::UpdatePolicy(). 73 // ConfigurationPolicyStore::UpdatePolicy().
74 void CheckAndPublishPolicy(); 74 void CheckAndPublishPolicy();
75 75
76 void CreateComponentCloudPolicyService( 76 void CreateComponentCloudPolicyService(
77 const base::FilePath& policy_cache_path, 77 const base::FilePath& policy_cache_path,
78 const scoped_refptr<net::URLRequestContextGetter>& request_context); 78 const scoped_refptr<net::URLRequestContextGetter>& request_context);
79 79
80 void ClearAndDestroyComponentCloudPolicyService();
81
80 // Convenience accessors to core() components. 82 // Convenience accessors to core() components.
81 CloudPolicyClient* client() { return core_.client(); } 83 CloudPolicyClient* client() { return core_.client(); }
82 const CloudPolicyClient* client() const { return core_.client(); } 84 const CloudPolicyClient* client() const { return core_.client(); }
83 CloudPolicyStore* store() { return core_.store(); } 85 CloudPolicyStore* store() { return core_.store(); }
84 const CloudPolicyStore* store() const { return core_.store(); } 86 const CloudPolicyStore* store() const { return core_.store(); }
85 CloudPolicyService* service() { return core_.service(); } 87 CloudPolicyService* service() { return core_.service(); }
86 const CloudPolicyService* service() const { return core_.service(); } 88 const CloudPolicyService* service() const { return core_.service(); }
87 ComponentCloudPolicyService* component_policy_service() const { 89 ComponentCloudPolicyService* component_policy_service() const {
88 return component_policy_service_.get(); 90 return component_policy_service_.get();
89 } 91 }
(...skipping 11 matching lines...) Expand all
101 103
102 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; 104 scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
103 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; 105 scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager); 107 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager);
106 }; 108 };
107 109
108 } // namespace policy 110 } // namespace policy
109 111
110 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_MANAGER_H_ 112 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698