Chromium Code Reviews| Index: chrome/browser/tracing/crash_service_uploader.cc |
| diff --git a/chrome/browser/tracing/crash_service_uploader.cc b/chrome/browser/tracing/crash_service_uploader.cc |
| index ab677e509b3c73d42322470c82438686b91f5134..db9196ad69ba8ff9009b1e990991227f78aff59b 100644 |
| --- a/chrome/browser/tracing/crash_service_uploader.cc |
| +++ b/chrome/browser/tracing/crash_service_uploader.cc |
| @@ -17,6 +17,7 @@ |
| #include "base/strings/stringprintf.h" |
| #include "base/time/time.h" |
| #include "build/build_config.h" |
| +#include "components/data_use_measurement/core/data_use_user_data.h" |
| #include "components/tracing/common/tracing_switches.h" |
| #include "components/version_info/version_info.h" |
| #include "content/public/browser/browser_thread.h" |
| @@ -310,6 +311,9 @@ void TraceCrashServiceUploader::CreateAndStartURLFetcher( |
| url_fetcher_ = |
| net::URLFetcher::Create(GURL(upload_url), net::URLFetcher::POST, this); |
| + data_use_measurement::DataUseUserData::AttachToFetcher( |
| + url_fetcher_.get(), |
| + data_use_measurement::DataUseUserData::TRACING_CRASH_UPLOADER); |
|
oystein (OOO til 10th of July)
2016/10/14 22:15:59
Yeah as primiano mentioned, I would just call this
|
| url_fetcher_->SetRequestContext(request_context_); |
| url_fetcher_->SetUploadData(content_type, post_data); |
| url_fetcher_->Start(); |