Index: chrome/browser/ssl/ssl_blocking_page.cc |
diff --git a/chrome/browser/ssl/ssl_blocking_page.cc b/chrome/browser/ssl/ssl_blocking_page.cc |
index d9cb0020a77f6c680d832d172f32f0305bf66526..237a1845bf98bf21558f00c36bcd50d56392a90c 100644 |
--- a/chrome/browser/ssl/ssl_blocking_page.cc |
+++ b/chrome/browser/ssl/ssl_blocking_page.cc |
@@ -311,11 +311,13 @@ SSLBlockingPage::SSLBlockingPage( |
&request_tracker_); |
} |
} |
- if (SSLErrorInfo::NetErrorToErrorType(cert_error_) == |
- SSLErrorInfo::CERT_DATE_INVALID) { |
- SSLErrorClassification::RecordUMAStatistics(overridable_ && |
- !strict_enforcement_); |
- } |
+ |
+ SSLErrorClassification ssl_error_classification( |
+ base::Time::NowFromSystemTime(), |
+ request_url_, |
+ *ssl_info_.cert.get()); |
+ ssl_error_classification.RecordUMAStatistics( |
+ overridable_ && !strict_enforcement_, cert_error_); |
#if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
CaptivePortalService* captive_portal_service = |