| Index: components/policy/core/common/cloud/cloud_policy_client.cc
|
| diff --git a/components/policy/core/common/cloud/cloud_policy_client.cc b/components/policy/core/common/cloud/cloud_policy_client.cc
|
| index 89d584928db5168a7d00366e802e9c6c920a42d4..020ee3e39bda7291c1ab5ec10c1b132fff105c9f 100644
|
| --- a/components/policy/core/common/cloud/cloud_policy_client.cc
|
| +++ b/components/policy/core/common/cloud/cloud_policy_client.cc
|
| @@ -129,6 +129,7 @@ void CloudPolicyClient::SetClientId(const std::string& client_id) {
|
|
|
| void CloudPolicyClient::Register(em::DeviceRegisterRequest::Type type,
|
| em::DeviceRegisterRequest::Flavor flavor,
|
| + em::LicenseType license_type,
|
| const std::string& auth_token,
|
| const std::string& client_id,
|
| const std::string& requisition,
|
| @@ -159,6 +160,8 @@ void CloudPolicyClient::Register(em::DeviceRegisterRequest::Type type,
|
| if (!current_state_key.empty())
|
| request->set_server_backed_state_key(current_state_key);
|
| request->set_flavor(flavor);
|
| + if (license_type != em::LicenseType::UNDEFINED)
|
| + request->set_license_type(license_type);
|
|
|
| policy_fetch_request_job_->SetRetryCallback(
|
| base::Bind(&CloudPolicyClient::OnRetryRegister,
|
| @@ -172,6 +175,7 @@ void CloudPolicyClient::Register(em::DeviceRegisterRequest::Type type,
|
| void CloudPolicyClient::RegisterWithCertificate(
|
| em::DeviceRegisterRequest::Type type,
|
| em::DeviceRegisterRequest::Flavor flavor,
|
| + em::LicenseType license_type,
|
| const std::string& pem_certificate_chain,
|
| const std::string& client_id,
|
| const std::string& requisition,
|
| @@ -200,6 +204,8 @@ void CloudPolicyClient::RegisterWithCertificate(
|
| if (!current_state_key.empty())
|
| request->set_server_backed_state_key(current_state_key);
|
| request->set_flavor(flavor);
|
| + if (license_type != em::LicenseType::UNDEFINED)
|
| + request->set_license_type(license_type);
|
|
|
| signing_service_->SignData(data.SerializeAsString(),
|
| base::Bind(&CloudPolicyClient::OnRegisterWithCertificateRequestSigned,
|
|
|