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

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

Issue 690643002: Add RESTORE_MODE_DISABLED to RestoreMode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment. Created 6 years, 1 month 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_DEVICE_CLOUD_POLICY_INITIALIZER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <string> 9 #include <string>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void EnrollmentCompleted(const EnrollmentCallback& enrollment_callback, 103 void EnrollmentCompleted(const EnrollmentCallback& enrollment_callback,
104 EnrollmentStatus status); 104 EnrollmentStatus status);
105 105
106 // Creates a new CloudPolicyClient. 106 // Creates a new CloudPolicyClient.
107 scoped_ptr<CloudPolicyClient> CreateClient( 107 scoped_ptr<CloudPolicyClient> CreateClient(
108 DeviceManagementService* device_management_service); 108 DeviceManagementService* device_management_service);
109 109
110 void TryToCreateClient(); 110 void TryToCreateClient();
111 void StartConnection(scoped_ptr<CloudPolicyClient> client); 111 void StartConnection(scoped_ptr<CloudPolicyClient> client);
112 112
113 // Gets the device restore mode as stored in |local_state_|.
114 std::string GetRestoreMode() const;
115
116 PrefService* local_state_; 113 PrefService* local_state_;
117 DeviceManagementService* enterprise_service_; 114 DeviceManagementService* enterprise_service_;
118 DeviceManagementService* consumer_service_; 115 DeviceManagementService* consumer_service_;
119 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; 116 scoped_refptr<base::SequencedTaskRunner> background_task_runner_;
120 EnterpriseInstallAttributes* install_attributes_; 117 EnterpriseInstallAttributes* install_attributes_;
121 ServerBackedStateKeysBroker* state_keys_broker_; 118 ServerBackedStateKeysBroker* state_keys_broker_;
122 DeviceCloudPolicyStoreChromeOS* device_store_; 119 DeviceCloudPolicyStoreChromeOS* device_store_;
123 DeviceCloudPolicyManagerChromeOS* manager_; 120 DeviceCloudPolicyManagerChromeOS* manager_;
124 chromeos::DeviceSettingsService* device_settings_service_; 121 chromeos::DeviceSettingsService* device_settings_service_;
125 base::Closure on_connected_callback_; 122 base::Closure on_connected_callback_;
126 bool is_initialized_; 123 bool is_initialized_;
127 124
128 // Non-NULL if there is an enrollment operation pending. 125 // Non-NULL if there is an enrollment operation pending.
129 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_; 126 scoped_ptr<EnrollmentHandlerChromeOS> enrollment_handler_;
130 127
131 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_; 128 ServerBackedStateKeysBroker::Subscription state_keys_update_subscription_;
132 129
133 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_; 130 scoped_ptr<CloudPolicyClient::StatusProvider> device_status_provider_;
134 131
135 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer); 132 DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyInitializer);
136 }; 133 };
137 134
138 } // namespace policy 135 } // namespace policy
139 136
140 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_ 137 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_CLOUD_POLICY_INITIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698