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

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

Issue 2186803003: Add UMA Precache.CacheStatus.NonPrefetch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed PrecacheManagerTests Created 4 years, 5 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: components/precache/core/precache_database.cc
diff --git a/components/precache/core/precache_database.cc b/components/precache/core/precache_database.cc
index 913c09fe4cc800e9dd3cc8586378ab02b200bb2f..e6853fa2eea9d6731033f953b5c4f770f260ed2b 100644
--- a/components/precache/core/precache_database.cc
+++ b/components/precache/core/precache_database.cc
@@ -180,6 +180,9 @@ void PrecacheDatabase::RecordURLNonPrefetch(const GURL& url,
int host_rank,
bool is_connection_cellular) {
UMA_HISTOGRAM_TIMES("Precache.Latency.NonPrefetch", latency);
+ UMA_HISTOGRAM_ENUMERATION("Precache.CacheStatus.NonPrefetch",
+ info.cache_entry_status,
+ net::HttpResponseInfo::CacheEntryStatus::ENTRY_MAX);
if (host_rank != history::kMaxTopHosts) {
// The resource was loaded on a page that could have been affected by
« no previous file with comments | « components/precache/content/precache_manager_unittest.cc ('k') | components/precache/core/precache_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698