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

Unified Diff: components/dom_distiller/core/distiller_url_fetcher.cc

Issue 2375773002: Add data usage tracking for feedback uploader, crash uploader, dom distiller (Closed)
Patch Set: Change to TRACING_UPLOADER Created 4 years, 2 months 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
« no previous file with comments | « components/dom_distiller/core/BUILD.gn ('k') | components/feedback/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/distiller_url_fetcher.cc
diff --git a/components/dom_distiller/core/distiller_url_fetcher.cc b/components/dom_distiller/core/distiller_url_fetcher.cc
index 0061d676b141c55072232d0c61fe989a82e4ab02..752c7ad77ae76b3b4f50a5448d7f18768ec4a225 100644
--- a/components/dom_distiller/core/distiller_url_fetcher.cc
+++ b/components/dom_distiller/core/distiller_url_fetcher.cc
@@ -4,6 +4,7 @@
#include "components/dom_distiller/core/distiller_url_fetcher.h"
+#include "components/data_use_measurement/core/data_use_user_data.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -48,6 +49,8 @@ std::unique_ptr<URLFetcher> DistillerURLFetcher::CreateURLFetcher(
const std::string& url) {
std::unique_ptr<net::URLFetcher> fetcher =
URLFetcher::Create(GURL(url), URLFetcher::GET, this);
+ data_use_measurement::DataUseUserData::AttachToFetcher(
+ fetcher.get(), data_use_measurement::DataUseUserData::DOM_DISTILLER);
fetcher->SetRequestContext(context_getter);
static const int kMaxRetries = 5;
fetcher->SetMaxRetriesOn5xx(kMaxRetries);
« no previous file with comments | « components/dom_distiller/core/BUILD.gn ('k') | components/feedback/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698