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

Side by Side Diff: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h

Issue 2230533002: Delete dead consumer enrollment code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 namespace net { 23 namespace net {
24 class URLRequestContextGetter; 24 class URLRequestContextGetter;
25 } 25 }
26 26
27 namespace policy { 27 namespace policy {
28 28
29 class AffiliatedCloudPolicyInvalidator; 29 class AffiliatedCloudPolicyInvalidator;
30 class AffiliatedInvalidationServiceProvider; 30 class AffiliatedInvalidationServiceProvider;
31 class AffiliatedRemoteCommandsInvalidator; 31 class AffiliatedRemoteCommandsInvalidator;
32 class BluetoothPolicyHandler; 32 class BluetoothPolicyHandler;
33 class ConsumerManagementService;
34 class DeviceCloudPolicyInitializer; 33 class DeviceCloudPolicyInitializer;
35 class DeviceLocalAccountPolicyService; 34 class DeviceLocalAccountPolicyService;
36 class DeviceManagementService; 35 class DeviceManagementService;
37 struct EnrollmentConfig; 36 struct EnrollmentConfig;
38 class EnterpriseInstallAttributes; 37 class EnterpriseInstallAttributes;
39 class NetworkConfigurationUpdater; 38 class NetworkConfigurationUpdater;
40 class ProxyPolicyProvider; 39 class ProxyPolicyProvider;
41 class ServerBackedStateKeysBroker; 40 class ServerBackedStateKeysBroker;
42 41
43 // Extends ChromeBrowserPolicyConnector with the setup specific to Chrome OS. 42 // Extends ChromeBrowserPolicyConnector with the setup specific to Chrome OS.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // provide managed values for the local state PrefService. It includes a 108 // provide managed values for the local state PrefService. It includes a
110 // policy provider that forwards policies from a delegate policy provider. 109 // policy provider that forwards policies from a delegate policy provider.
111 // This call can be used to set the user policy provider as that delegate 110 // This call can be used to set the user policy provider as that delegate
112 // once the Profile is ready, so that user policies can also affect local 111 // once the Profile is ready, so that user policies can also affect local
113 // state preferences. 112 // state preferences.
114 // Only one user policy provider can be set as a delegate at a time, and any 113 // Only one user policy provider can be set as a delegate at a time, and any
115 // previously set delegate is removed. Passing NULL removes the current 114 // previously set delegate is removed. Passing NULL removes the current
116 // delegate, if there is one. 115 // delegate, if there is one.
117 void SetUserPolicyDelegate(ConfigurationPolicyProvider* user_policy_provider); 116 void SetUserPolicyDelegate(ConfigurationPolicyProvider* user_policy_provider);
118 117
119 ConsumerManagementService* GetConsumerManagementService() const {
120 return consumer_management_service_.get();
121 }
122
123 DeviceManagementService* GetDeviceManagementServiceForConsumer() const {
124 return consumer_device_management_service_.get();
125 }
126
127 // Sets the consumer management service for testing.
128 void SetConsumerManagementServiceForTesting(
129 std::unique_ptr<ConsumerManagementService> service);
130
131 // Sets the device cloud policy initializer for testing. 118 // Sets the device cloud policy initializer for testing.
132 void SetDeviceCloudPolicyInitializerForTesting( 119 void SetDeviceCloudPolicyInitializerForTesting(
133 std::unique_ptr<DeviceCloudPolicyInitializer> initializer); 120 std::unique_ptr<DeviceCloudPolicyInitializer> initializer);
134 121
135 // Sets the install attributes for testing. Must be called before the browser 122 // Sets the install attributes for testing. Must be called before the browser
136 // is created. RemoveInstallAttributesForTesting must be called after the test 123 // is created. RemoveInstallAttributesForTesting must be called after the test
137 // to free the attributes. 124 // to free the attributes.
138 static void SetInstallAttributesForTesting( 125 static void SetInstallAttributesForTesting(
139 EnterpriseInstallAttributes* attributes); 126 EnterpriseInstallAttributes* attributes);
140 static void RemoveInstallAttributesForTesting(); 127 static void RemoveInstallAttributesForTesting();
(...skipping 13 matching lines...) Expand all
154 141
155 // Restarts the device cloud policy initializer, because the device's 142 // Restarts the device cloud policy initializer, because the device's
156 // registration status changed from registered to unregistered. 143 // registration status changed from registered to unregistered.
157 void RestartDeviceCloudPolicyInitializer(); 144 void RestartDeviceCloudPolicyInitializer();
158 145
159 // Components of the device cloud policy implementation. 146 // Components of the device cloud policy implementation.
160 std::unique_ptr<ServerBackedStateKeysBroker> state_keys_broker_; 147 std::unique_ptr<ServerBackedStateKeysBroker> state_keys_broker_;
161 std::unique_ptr<EnterpriseInstallAttributes> install_attributes_; 148 std::unique_ptr<EnterpriseInstallAttributes> install_attributes_;
162 std::unique_ptr<AffiliatedInvalidationServiceProvider> 149 std::unique_ptr<AffiliatedInvalidationServiceProvider>
163 affiliated_invalidation_service_provider_; 150 affiliated_invalidation_service_provider_;
164 std::unique_ptr<ConsumerManagementService> consumer_management_service_;
165 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_; 151 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_;
166 PrefService* local_state_; 152 PrefService* local_state_;
167 std::unique_ptr<DeviceManagementService> consumer_device_management_service_;
168 std::unique_ptr<DeviceCloudPolicyInitializer> 153 std::unique_ptr<DeviceCloudPolicyInitializer>
169 device_cloud_policy_initializer_; 154 device_cloud_policy_initializer_;
170 std::unique_ptr<DeviceLocalAccountPolicyService> 155 std::unique_ptr<DeviceLocalAccountPolicyService>
171 device_local_account_policy_service_; 156 device_local_account_policy_service_;
172 std::unique_ptr<AffiliatedCloudPolicyInvalidator> 157 std::unique_ptr<AffiliatedCloudPolicyInvalidator>
173 device_cloud_policy_invalidator_; 158 device_cloud_policy_invalidator_;
174 std::unique_ptr<AffiliatedRemoteCommandsInvalidator> 159 std::unique_ptr<AffiliatedRemoteCommandsInvalidator>
175 device_remote_commands_invalidator_; 160 device_remote_commands_invalidator_;
176 161
177 std::unique_ptr<BluetoothPolicyHandler> bluetooth_policy_handler_; 162 std::unique_ptr<BluetoothPolicyHandler> bluetooth_policy_handler_;
178 163
179 // This policy provider is used on Chrome OS to feed user policy into the 164 // This policy provider is used on Chrome OS to feed user policy into the
180 // global PolicyService instance. This works by installing the cloud policy 165 // global PolicyService instance. This works by installing the cloud policy
181 // provider of the primary profile as the delegate of the ProxyPolicyProvider, 166 // provider of the primary profile as the delegate of the ProxyPolicyProvider,
182 // after login. 167 // after login.
183 // The provider is owned by the base class; this field is just a typed weak 168 // The provider is owned by the base class; this field is just a typed weak
184 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate(). 169 // pointer to get to the ProxyPolicyProvider at SetUserPolicyDelegate().
185 ProxyPolicyProvider* global_user_cloud_policy_provider_; 170 ProxyPolicyProvider* global_user_cloud_policy_provider_;
186 171
187 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_; 172 std::unique_ptr<NetworkConfigurationUpdater> network_configuration_updater_;
188 173
189 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_; 174 base::WeakPtrFactory<BrowserPolicyConnectorChromeOS> weak_ptr_factory_;
190 175
191 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS); 176 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnectorChromeOS);
192 }; 177 };
193 178
194 } // namespace policy 179 } // namespace policy
195 180
196 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_ 181 #endif // CHROME_BROWSER_CHROMEOS_POLICY_BROWSER_POLICY_CONNECTOR_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698