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

Unified Diff: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h

Issue 240903002: Add consumer_device_management_service() in BrowserPolicyConnectorChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months 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/chromeos/policy/browser_policy_connector_chromeos.h
diff --git a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h
index 8c1d92bcdbeb73405975805f1ba430917eef2920..83ab02c0c7ed79e2e0de0d261a3558db736f3a0f 100644
--- a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h
+++ b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h
@@ -26,6 +26,7 @@ namespace policy {
class AppPackUpdater;
class DeviceCloudPolicyManagerChromeOS;
class DeviceLocalAccountPolicyService;
+class DeviceManagementService;
class EnterpriseInstallAttributes;
class NetworkConfigurationUpdater;
class ProxyPolicyProvider;
@@ -85,6 +86,11 @@ class BrowserPolicyConnectorChromeOS : public ChromeBrowserPolicyConnector {
// delegate, if there is one.
void SetUserPolicyDelegate(ConfigurationPolicyProvider* user_policy_provider);
+ // Returns the device management service for consumer management.
+ DeviceManagementService* consumer_device_management_service() const {
+ return consumer_device_management_service_.get();
+ }
+
// Sets the install attributes for testing. Must be called before the browser
// is created. Takes ownership of |attributes|.
static void SetInstallAttributesForTesting(
@@ -114,6 +120,8 @@ class BrowserPolicyConnectorChromeOS : public ChromeBrowserPolicyConnector {
scoped_ptr<AppPackUpdater> app_pack_updater_;
scoped_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
+ scoped_ptr<DeviceManagementService> consumer_device_management_service_;
+
base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS);

Powered by Google App Engine
This is Rietveld 408576698