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

Unified Diff: content/browser/ssl/ssl_cert_error_handler.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_cert_error_handler.cc
diff --git a/content/browser/ssl/ssl_cert_error_handler.cc b/content/browser/ssl/ssl_cert_error_handler.cc
index c668b411d400d461232b4c8cabc0acfe0affa309..8af198a90b8ed7a0bc0c4176170f40eb83dc2a9e 100644
--- a/content/browser/ssl/ssl_cert_error_handler.cc
+++ b/content/browser/ssl/ssl_cert_error_handler.cc
@@ -13,15 +13,13 @@ SSLCertErrorHandler::SSLCertErrorHandler(
net::URLRequest* request,
ResourceType::Type resource_type,
int cert_error,
- net::X509Certificate* cert)
+ const net::SSLInfo& ssl_info,
+ bool must_be_fatal)
: SSLErrorHandler(rdh, request, resource_type),
- cert_error_(cert_error) {
+ ssl_info_(ssl_info),
+ cert_error_(cert_error),
+ must_be_fatal_(must_be_fatal) {
DCHECK(request == resource_dispatcher_host_->GetURLRequest(request_id_));
-
- // We cannot use the request->ssl_info(), it's not been initialized yet, so
- // we have to set the fields manually.
- ssl_info_.cert = cert;
- ssl_info_.SetCertError(cert_error);
wtc 2011/09/23 00:04:51 This is interesting -- so in the original code, ss
agl 2011/09/23 18:45:38 ssl_info.security_bits has the value that you woul
wtc 2011/09/26 19:18:48 That should be fine. Could be considered an impro
}
SSLCertErrorHandler* SSLCertErrorHandler::AsSSLCertErrorHandler() {

Powered by Google App Engine
This is Rietveld 408576698