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

Unified Diff: chrome/browser/android/feedback/connectivity_checker.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 | « no previous file | chrome/browser/tracing/crash_service_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/feedback/connectivity_checker.cc
diff --git a/chrome/browser/android/feedback/connectivity_checker.cc b/chrome/browser/android/feedback/connectivity_checker.cc
index 9a4154c83b8a63b6ee8fb7050ea37bc5da302557..a499401dcf99a37864264de8c14e4c7af584ead0 100644
--- a/chrome/browser/android/feedback/connectivity_checker.cc
+++ b/chrome/browser/android/feedback/connectivity_checker.cc
@@ -14,6 +14,7 @@
#include "base/timer/timer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_android.h"
+#include "components/data_use_measurement/core/data_use_user_data.h"
#include "jni/ConnectivityChecker_jni.h"
#include "net/base/load_flags.h"
#include "net/http/http_status_code.h"
@@ -141,6 +142,9 @@ ConnectivityChecker::ConnectivityChecker(
void ConnectivityChecker::StartAsyncCheck() {
url_fetcher_ = net::URLFetcher::Create(url_, net::URLFetcher::GET, this);
+ data_use_measurement::DataUseUserData::AttachToFetcher(
+ url_fetcher_.get(),
+ data_use_measurement::DataUseUserData::FEEDBACK_UPLOADER);
url_fetcher_->SetRequestContext(request_context_);
url_fetcher_->SetStopOnRedirect(true);
url_fetcher_->SetAutomaticallyRetryOn5xx(false);
« no previous file with comments | « no previous file | chrome/browser/tracing/crash_service_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698