| Index: chrome/browser/policy/device_token_fetcher.cc
|
| diff --git a/chrome/browser/policy/device_token_fetcher.cc b/chrome/browser/policy/device_token_fetcher.cc
|
| index 6661d3c066cd26ae274ff2ef219429b6a656c250..ff35156c42335acea5b0245165642525269f19e0 100644
|
| --- a/chrome/browser/policy/device_token_fetcher.cc
|
| +++ b/chrome/browser/policy/device_token_fetcher.cc
|
| @@ -50,11 +50,16 @@ DeviceTokenFetcher::~DeviceTokenFetcher() {
|
| CancelRetryTask();
|
| }
|
|
|
| -void DeviceTokenFetcher::FetchToken(const std::string& auth_token,
|
| - const std::string& device_id) {
|
| +void DeviceTokenFetcher::FetchToken(
|
| + const std::string& auth_token,
|
| + const std::string& device_id,
|
| + const em::DeviceRegisterRequest_Type policy_type,
|
| + const std::string& machine_id) {
|
| SetState(STATE_INACTIVE);
|
| auth_token_ = auth_token;
|
| device_id_ = device_id;
|
| + policy_type_ = policy_type;
|
| + machine_id_ = machine_id;
|
| FetchTokenInternal();
|
| }
|
|
|
| @@ -64,6 +69,8 @@ void DeviceTokenFetcher::FetchTokenInternal() {
|
| // Construct a new backend, which will discard any previous requests.
|
| backend_.reset(service_->CreateBackend());
|
| em::DeviceRegisterRequest request;
|
| + request.set_type(policy_type_);
|
| + request.set_machine_id(machine_id_);
|
| backend_->ProcessRegisterRequest(auth_token_, device_id_, request, this);
|
| }
|
|
|
|
|