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

Unified Diff: content/browser/renderer_host/duplicate_content_resource_handler.cc

Issue 10829282: Added a histogram to track number of http/https resources. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/duplicate_content_resource_handler.cc
===================================================================
--- content/browser/renderer_host/duplicate_content_resource_handler.cc (revision 151274)
+++ content/browser/renderer_host/duplicate_content_resource_handler.cc (working copy)
@@ -92,6 +92,10 @@
MH_UINT32 contents_hash = PMurHash32_Result(pmurhash_ph1_,
pmurhash_pcarry_, bytes_read_);
+ bool is_http_or_https = request_->url().SchemeIs("http") ||
+ request_->url().SchemeIs("https");
+ UMA_HISTOGRAM_BOOLEAN("Duplicate.IsHttpOrHttps", is_http_or_https);
+
// Combine the contents_hash with the url, so we can test if future content
// identical resources have the same original url or not.
MH_UINT32 hashed_with_url;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698