Index: chrome/browser/policy/cloud_policy_controller.cc |
diff --git a/chrome/browser/policy/cloud_policy_controller.cc b/chrome/browser/policy/cloud_policy_controller.cc |
index 48d0ffa630ccdc4fb9fbca01420136587638e743..548ad0a36cec0b873da78a758042787e69437359 100644 |
--- a/chrome/browser/policy/cloud_policy_controller.cc |
+++ b/chrome/browser/policy/cloud_policy_controller.cc |
@@ -256,6 +256,7 @@ void CloudPolicyController::SendPolicyRequest() { |
DCHECK(!data_store_->device_token().empty()); |
em::DevicePolicyRequest policy_request; |
em::PolicyFetchRequest* fetch_request = policy_request.add_request(); |
+ em::DeviceStatusReportRequest device_status; |
fetch_request->set_signature_type(em::PolicyFetchRequest::SHA1_RSA); |
fetch_request->set_policy_type(data_store_->policy_type()); |
if (!cache_->is_unmanaged() && |
@@ -268,10 +269,12 @@ void CloudPolicyController::SendPolicyRequest() { |
if (cache_->GetPublicKeyVersion(&key_version)) |
fetch_request->set_public_key_version(key_version); |
+ data_store_->device_status_reporter()->GetStatus(&device_status); |
+ |
backend_->ProcessPolicyRequest(data_store_->device_token(), |
data_store_->device_id(), |
data_store_->user_affiliation(), |
- policy_request, this); |
+ policy_request, device_status, this); |
Mattias Nissler (ping if slow)
2011/11/25 14:15:19
One thing: We should reset our status counters aft
Patrick Dubroy
2011/11/29 18:01:46
Yeah, I was sure whether I should reset the data a
|
} |
void CloudPolicyController::DoWork() { |