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

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: 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..2b965d266deb9c1650ad1936ababf80cca80b011 100644
--- a/net/url_request/data_use_measurement.cc
+++ b/net/url_request/data_use_measurement.cc
@@ -135,6 +135,14 @@ void ReportDataUsage(const std::string& service_name,
}
} // namespace
+void SparseDataUseReport(const std::string& histogram_name,
bengr 2015/08/07 17:13:37 Add a blank line above.
amohammadkhan 2015/08/07 18:52:30 Done.
+ int value,
+ int count) {
+ if (count > 0)
+ UMA_HISTOGRAM_SPARSE_SLOWLY_WITH_VALUE(histogram_name, value, count);
+ else
+ LOG(ERROR) << "Ali1 zero or negative count " << count;
bengr 2015/08/07 17:13:37 What is Ali1?
amohammadkhan 2015/08/07 18:52:30 Sorry, basically this LOG(ERROR) was for testing t
+}
void DataUseReport(const std::string& service_name,
const net::URLFetcher* fetcher) {

Powered by Google App Engine
This is Rietveld 408576698