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

Side by Side Diff: chrome/browser/policy/browser_policy_connector.h

Issue 11444029: Added UserPolicySigninService::FetchPolicyForSignedInUser(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review feedback Created 8 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
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 return device_cloud_policy_manager_.get(); 168 return device_cloud_policy_manager_.get();
169 } 169 }
170 UserCloudPolicyManagerChromeOS* GetUserCloudPolicyManager() { 170 UserCloudPolicyManagerChromeOS* GetUserCloudPolicyManager() {
171 return user_cloud_policy_manager_.get(); 171 return user_cloud_policy_manager_.get();
172 } 172 }
173 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() { 173 DeviceLocalAccountPolicyService* GetDeviceLocalAccountPolicyService() {
174 return device_local_account_policy_service_.get(); 174 return device_local_account_policy_service_.get();
175 } 175 }
176 #endif 176 #endif
177 177
178 // Allows setting a DeviceManagementService (for injecting mocks in
179 // unit tests).
180 void SetDeviceManagementServiceForTesting(
181 scoped_ptr<DeviceManagementService> service);
182
178 // Sets a |provider| that will be included in PolicyServices returned by 183 // Sets a |provider| that will be included in PolicyServices returned by
179 // CreatePolicyService. This is a static method because local state is 184 // CreatePolicyService. This is a static method because local state is
180 // created immediately after the connector, and tests don't have a chance to 185 // created immediately after the connector, and tests don't have a chance to
181 // inject the provider otherwise. |provider| must outlive the connector, and 186 // inject the provider otherwise. |provider| must outlive the connector, and
182 // its ownership is not taken though the connector will initialize and shut it 187 // its ownership is not taken though the connector will initialize and shut it
183 // down. 188 // down.
184 static void SetPolicyProviderForTesting( 189 static void SetPolicyProviderForTesting(
185 ConfigurationPolicyProvider* provider); 190 ConfigurationPolicyProvider* provider);
186 191
187 // Gets the URL of the DM server (either the default or a URL provided via the 192 // Gets the URL of the DM server (either the default or a URL provided via the
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 scoped_ptr<AppPackUpdater> app_pack_updater_; 285 scoped_ptr<AppPackUpdater> app_pack_updater_;
281 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 286 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
282 #endif 287 #endif
283 288
284 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 289 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
285 }; 290 };
286 291
287 } // namespace policy 292 } // namespace policy
288 293
289 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 294 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698