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

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

Issue 8585038: Add histogram to measure failure reasons for SSL Search (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/resource_dispatcher_host.cc
diff --git a/content/browser/renderer_host/resource_dispatcher_host.cc b/content/browser/renderer_host/resource_dispatcher_host.cc
index 46d2cc2abd3442ae08c956f9d31d8608da39f35c..6a2d6a4bf1cf60f2421821b25edacb9a911c6837 100644
--- a/content/browser/renderer_host/resource_dispatcher_host.cc
+++ b/content/browser/renderer_host/resource_dispatcher_host.cc
@@ -1777,6 +1777,15 @@ void ResourceDispatcherHost::OnResponseCompleted(net::URLRequest* request) {
-request->status().error(),
base::CustomHistogram::ArrayToCustomRanges(
kAllNetErrorCodes, arraysize(kAllNetErrorCodes)));
+
+ if (request->url().SchemeIsSecure() &&
+ request->url().host() == "www.google.com") {
+ UMA_HISTOGRAM_CUSTOM_ENUMERATION(
+ "Net.ErrorCodesForHTTPSGoogleMainFrame",
+ -request->status().error(),
+ base::CustomHistogram::ArrayToCustomRanges(
+ kAllNetErrorCodes, arraysize(kAllNetErrorCodes)));
+ }
}
std::string security_info;
« 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