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

Unified Diff: net/url_request/data_use_measurement.cc

Issue 1273303002: Measuring data use of different ModelTypes in Sync Service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewServices
Patch Set: Updating previous message size in commit 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/data_use_measurement.cc
diff --git a/net/url_request/data_use_measurement.cc b/net/url_request/data_use_measurement.cc
index d27cc1b397e084f9ea9d8f086d01ffba4a6c2426..70b075455756db4e529f6f4ba27e31864bfb7458 100644
--- a/net/url_request/data_use_measurement.cc
+++ b/net/url_request/data_use_measurement.cc
@@ -136,6 +136,13 @@ void ReportDataUsage(const std::string& service_name,
} // namespace
+void SparseDataUseReport(const std::string& histogram_name,
+ int value,
+ int count) {
+ if (count > 0)
+ UMA_HISTOGRAM_SPARSE_SLOWLY_WITH_VALUE(histogram_name, value, count);
+}
+
void DataUseReport(const std::string& service_name,
const net::URLFetcher* fetcher) {
#if defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698