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

Unified Diff: chrome/browser/policy/cloud_policy_controller.cc

Issue 8702009: Add device status reports to policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix one issue I missed. Created 9 years 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 side-by-side diff with in-line comments
Download patch
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 93f450ec618201cf093e4a7f18ce9899fc34f5ce..6ab9119ca294f2718e325186cee8f521d2ca7acb 100644
--- a/chrome/browser/policy/cloud_policy_controller.cc
+++ b/chrome/browser/policy/cloud_policy_controller.cc
@@ -262,6 +262,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() &&
@@ -274,10 +275,12 @@ void CloudPolicyController::SendPolicyRequest() {
if (cache_->GetPublicKeyVersion(&key_version))
fetch_request->set_public_key_version(key_version);
+ data_store_->device_status_collector()->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);
}
void CloudPolicyController::DoWork() {

Powered by Google App Engine
This is Rietveld 408576698