Index: content/browser/geolocation/network_location_request.cc |
diff --git a/content/browser/geolocation/network_location_request.cc b/content/browser/geolocation/network_location_request.cc |
index b1bf408582e93a09c759548ca6e9bb76754ac806..85a458602258f5bd53da06339c286a5218db4315 100644 |
--- a/content/browser/geolocation/network_location_request.cc |
+++ b/content/browser/geolocation/network_location_request.cc |
@@ -14,6 +14,7 @@ |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/values.h" |
+#include "components/data_use_measurement/core/data_use_user_data.h" |
#include "content/browser/geolocation/location_arbitrator_impl.h" |
#include "content/public/common/geoposition.h" |
#include "google_apis/google_api_keys.h" |
@@ -125,6 +126,8 @@ bool NetworkLocationRequest::MakeRequest(const base::string16& access_token, |
GURL request_url = FormRequestURL(url_); |
url_fetcher_ = net::URLFetcher::Create(url_fetcher_id_for_tests, request_url, |
net::URLFetcher::POST, this); |
+ data_use_measurement::DataUseUserData::AttachToFetcher( |
+ url_fetcher_.get(), data_use_measurement::DataUseUserData::GEO_LOCATION); |
url_fetcher_->SetRequestContext(url_context_.get()); |
std::string upload_data; |
FormUploadData(wifi_data, timestamp, access_token, &upload_data); |