Index: components/policy/core/common/cloud/device_management_service.cc |
diff --git a/components/policy/core/common/cloud/device_management_service.cc b/components/policy/core/common/cloud/device_management_service.cc |
index 5a22d9dfa6d9b88e71800fa718c195aed7c83759..05a058bdccdafba27f6427179c8095401471dba2 100644 |
--- a/components/policy/core/common/cloud/device_management_service.cc |
+++ b/components/policy/core/common/cloud/device_management_service.cc |
@@ -11,6 +11,7 @@ |
#include "base/location.h" |
#include "base/single_thread_task_runner.h" |
#include "base/thread_task_runner_handle.h" |
+#include "components/data_use_measurement/core/data_use_user_data.h" |
#include "net/base/escape.h" |
#include "net/base/load_flags.h" |
#include "net/base/net_errors.h" |
@@ -463,6 +464,8 @@ void DeviceManagementService::StartJob(DeviceManagementRequestJobImpl* job) { |
net::URLFetcher* fetcher = |
net::URLFetcher::Create(kURLFetcherID, job->GetURL(server_url), |
net::URLFetcher::POST, this).release(); |
+ data_use_measurement::DataUseUserData::AttachToFetcher( |
+ fetcher, data_use_measurement::DataUseUserData::POLICY); |
job->ConfigureRequest(fetcher); |
pending_jobs_[fetcher] = job; |
fetcher->Start(); |