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

Unified Diff: components/precache/core/precache_database.cc

Issue 2364873004: Add Precache.CacheStatus.NonPrefetch.FromPrecache. (Closed)
Patch Set: Created 4 years, 3 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 | components/precache/core/precache_database_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/core/precache_database.cc
diff --git a/components/precache/core/precache_database.cc b/components/precache/core/precache_database.cc
index f513410c98cea69b06a3edfd4f2dcdf32df4b16e..10f231fed8cff6a2a7e73bc0a275ae79823e90aa 100644
--- a/components/precache/core/precache_database.cc
+++ b/components/precache/core/precache_database.cc
@@ -256,6 +256,12 @@ void PrecacheDatabase::RecordURLNonPrefetch(const GURL& url,
return;
}
+ if (is_precached)
Raj 2016/09/26 22:09:58 nit: add the multiline statement inside parenthese
twifkak 2016/09/26 22:57:05 Done.
+ UMA_HISTOGRAM_ENUMERATION(
+ "Precache.CacheStatus.NonPrefetch.FromPrecache",
+ info.cache_entry_status,
+ net::HttpResponseInfo::CacheEntryStatus::ENTRY_MAX);
+
base::HistogramBase::Sample size_sample =
static_cast<base::HistogramBase::Sample>(size);
if (!info.was_cached) {
« no previous file with comments | « no previous file | components/precache/core/precache_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698