| Index: chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
|
| diff --git a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
|
| index f016ce7bd121c634230dc1ed309e002545cdde05..28ae958c7febcabe06e2a1eb9d3117c34e9e6702 100644
|
| --- a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
|
| +++ b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.h
|
| @@ -27,6 +27,9 @@ namespace enterprise_management {
|
| class PolicyFetchResponse;
|
| }
|
|
|
| +class PrefRegistrySimple;
|
| +class PrefService;
|
| +
|
| namespace policy {
|
|
|
| class DeviceCloudPolicyStoreChromeOS;
|
| @@ -58,6 +61,7 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
|
| // enrollment will fail with an EnrollmentStatus indicating
|
| // STATUS_REGISTRATION_BAD_MODE.
|
| EnrollmentHandlerChromeOS(
|
| + PrefService* local_state,
|
| DeviceCloudPolicyStoreChromeOS* store,
|
| EnterpriseInstallAttributes* install_attributes,
|
| ServerBackedStateKeysBroker* state_keys_broker,
|
| @@ -66,11 +70,13 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
|
| const std::string& auth_token,
|
| const std::string& client_id,
|
| bool is_auto_enrollment,
|
| - const std::string& requisition,
|
| const AllowedDeviceModes& allowed_device_modes,
|
| const EnrollmentCallback& completion_callback);
|
| virtual ~EnrollmentHandlerChromeOS();
|
|
|
| + // Pref registration helper.
|
| + static void RegisterPrefs(PrefRegistrySimple* registry);
|
| +
|
| // Starts the enrollment process and reports the result to
|
| // |completion_callback_|.
|
| void StartEnrollment();
|
| @@ -78,6 +84,14 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
|
| // Releases the client.
|
| scoped_ptr<CloudPolicyClient> ReleaseClient();
|
|
|
| + // Gets/Sets the device requisition.
|
| + std::string GetDeviceRequisition() const;
|
| + void SetDeviceRequisition(const std::string& requisition);
|
| +
|
| + // Returns true if device requisition is remora/shark.
|
| + bool IsRemoraRequisition() const;
|
| + bool IsSharkRequisition() const;
|
| +
|
| // CloudPolicyClient::Observer:
|
| virtual void OnPolicyFetched(CloudPolicyClient* client) OVERRIDE;
|
| virtual void OnRegistrationStateChanged(CloudPolicyClient* client) OVERRIDE;
|
| @@ -115,6 +129,9 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
|
| STEP_FINISHED, // Enrollment process finished, no further action.
|
| };
|
|
|
| + // Initializes requisition settings at OOBE with values from VPD.
|
| + void InitializeRequisition();
|
| +
|
| // Handles the response to a request for server-backed state keys.
|
| void CheckStateKeys(const std::vector<std::string>& state_keys);
|
|
|
| @@ -149,6 +166,7 @@ class EnrollmentHandlerChromeOS : public CloudPolicyClient::Observer,
|
| // Reports the result of the enrollment process to the initiator.
|
| void ReportResult(EnrollmentStatus status);
|
|
|
| + PrefService* local_state_;
|
| DeviceCloudPolicyStoreChromeOS* store_;
|
| EnterpriseInstallAttributes* install_attributes_;
|
| ServerBackedStateKeysBroker* state_keys_broker_;
|
|
|