Index: components/precache/core/precache_fetcher.cc |
diff --git a/components/precache/core/precache_fetcher.cc b/components/precache/core/precache_fetcher.cc |
index 8b7589ba8696053987166343f2a461f8a80ffaea..2194bdc932dcfeb740dc73eb21b7410d0dc4feb1 100644 |
--- a/components/precache/core/precache_fetcher.cc |
+++ b/components/precache/core/precache_fetcher.cc |
@@ -280,6 +280,10 @@ void PrecacheFetcher::Fetcher::OnURLFetchDownloadProgress( |
response_bytes_ = network_response_bytes_ = current; |
was_cached_ = source->WasCached(); |
+ UMA_HISTOGRAM_CUSTOM_COUNTS("Precache.Fetch.ResponseBytes.NetworkWasted", |
+ network_response_bytes_, 1, |
+ 1024 * 1024 /* 1 MB */, 100); |
+ |
// Cancel the download. |
network_url_fetcher_.reset(); |
callback_.Run(*this); |