Commit a5d585c1 authored by frankwang@google.com's avatar frankwang@google.com

Added a histogram to track number of http/https resources.

R=gavinp@chromium.org,darin@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10829282

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151338 0039d316-1c4b-4281-b951-d872f2087c98
parent a9fbefa0
......@@ -92,6 +92,10 @@ void DuplicateContentResourceHandler::RecordContentMetrics() {
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment