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

Unified Diff: net/url_request/url_fetcher.cc

Issue 1279543002: Support needed to measure user and service traffic in Chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewHistogram
Patch Set: Created 5 years, 4 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
Index: net/url_request/url_fetcher.cc
diff --git a/net/url_request/url_fetcher.cc b/net/url_request/url_fetcher.cc
index d4bd8200c25ed009c7768792f3ac250d6dde09a1..49e853d0040c01d9773e390bd26d7a35abbd1b25 100644
--- a/net/url_request/url_fetcher.cc
+++ b/net/url_request/url_fetcher.cc
@@ -4,6 +4,7 @@
#include "net/url_request/url_fetcher.h"
+#include "net/url_request/data_use_measurement.h"
#include "net/url_request/url_fetcher_factory.h"
#include "net/url_request/url_fetcher_impl.h"
@@ -34,6 +35,10 @@ void URLFetcher::CancelAll() {
URLFetcherImpl::CancelAll();
}
+void URLFetcher::ReportYourUsage(const std::string& service) const {
+ DataUseReport(service, this);
bengr 2015/08/07 18:00:01 Rename as ReportDataUseUMA, so something like that
amohammadkhan 2015/08/11 22:04:36 Done.
+}
+
// static
void URLFetcher::SetIgnoreCertificateRequests(bool ignored) {
URLFetcherImpl::SetIgnoreCertificateRequests(ignored);

Powered by Google App Engine
This is Rietveld 408576698