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

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: Rebase 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
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 #if defined(OS_CHROMEOS) 166 #if defined(OS_CHROMEOS)
167 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() { 167 DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() {
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 #endif 173 #endif
174 174
175 // Allows setting a DeviceManagementService (for injecting mocks in
176 // unit tests).
177 void SetDeviceManagementServiceForTest(
Mattias Nissler (ping if slow) 2012/12/07 15:20:45 Please make naming consistent with SetPolicyProvid
Andrew T Wilson (Slow) 2012/12/07 17:34:29 Done.
178 scoped_ptr<DeviceManagementService> service);
179
175 // Sets a |provider| that will be included in PolicyServices returned by 180 // Sets a |provider| that will be included in PolicyServices returned by
176 // CreatePolicyService. This is a static method because local state is 181 // CreatePolicyService. This is a static method because local state is
177 // created immediately after the connector, and tests don't have a chance to 182 // created immediately after the connector, and tests don't have a chance to
178 // inject the provider otherwise. |provider| must outlive the connector, and 183 // inject the provider otherwise. |provider| must outlive the connector, and
179 // its ownership is not taken though the connector will initialize and shut it 184 // its ownership is not taken though the connector will initialize and shut it
180 // down. 185 // down.
181 static void SetPolicyProviderForTesting( 186 static void SetPolicyProviderForTesting(
182 ConfigurationPolicyProvider* provider); 187 ConfigurationPolicyProvider* provider);
183 188
184 // Gets the URL of the DM server (either the default or a URL provided via the 189 // Gets the URL of the DM server (either the default or a URL provided via the
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 scoped_ptr<AppPackUpdater> app_pack_updater_; 277 scoped_ptr<AppPackUpdater> app_pack_updater_;
273 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 278 scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
274 #endif 279 #endif
275 280
276 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 281 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
277 }; 282 };
278 283
279 } // namespace policy 284 } // namespace policy
280 285
281 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 286 #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') | chrome/browser/policy/cloud_policy_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698