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

Unified Diff: content/browser/ssl/ssl_manager.cc

Issue 7976036: net: make HSTS hosts use the normal SSL interstitials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 3 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: content/browser/ssl/ssl_manager.cc
diff --git a/content/browser/ssl/ssl_manager.cc b/content/browser/ssl/ssl_manager.cc
index 2f88040c714df9a420532eff09d97507b445887b..5fdacd24bf173d5cc1b1805028d0dc7b1a0f61bd 100644
--- a/content/browser/ssl/ssl_manager.cc
+++ b/content/browser/ssl/ssl_manager.cc
@@ -24,9 +24,10 @@
// static
void SSLManager::OnSSLCertificateError(ResourceDispatcherHost* rdh,
net::URLRequest* request,
- int cert_error,
- net::X509Certificate* cert) {
- DVLOG(1) << "OnSSLCertificateError() cert_error: " << cert_error
+ const net::SSLInfo& ssl_info,
+ bool is_hsts_host) {
+ DVLOG(1) << "OnSSLCertificateError() cert_error: "
+ << net::MapCertStatusToNetError(ssl_info.cert_status)
<< " url: " << request->url().spec();
wtc 2011/09/26 19:15:10 Optional: I suggest we log cert_status instead of
ResourceDispatcherHostRequestInfo* info =
@@ -39,8 +40,8 @@ void SSLManager::OnSSLCertificateError(ResourceDispatcherHost* rdh,
NewRunnableMethod(new SSLCertErrorHandler(rdh,
request,
info->resource_type(),
- cert_error,
- cert),
+ ssl_info,
+ is_hsts_host),
&SSLCertErrorHandler::Dispatch));
}

Powered by Google App Engine
This is Rietveld 408576698