Chromium Code Reviews| Index: net/proxy/proxy_script_fetcher_impl.cc |
| diff --git a/net/proxy/proxy_script_fetcher_impl.cc b/net/proxy/proxy_script_fetcher_impl.cc |
| index 7025e72696eabac7052e0a45a9f5c39f57e9110c..f4b1f9734b09874c1cde46752dcdd9cc69cb033f 100644 |
| --- a/net/proxy/proxy_script_fetcher_impl.cc |
| +++ b/net/proxy/proxy_script_fetcher_impl.cc |
| @@ -9,6 +9,7 @@ |
| #include "base/logging.h" |
| #include "base/message_loop.h" |
| #include "base/string_util.h" |
| +#include "net/base/cert_status_flags.h" |
| #include "net/base/data_url.h" |
| #include "net/base/io_buffer.h" |
| #include "net/base/load_flags.h" |
| @@ -190,12 +191,12 @@ void ProxyScriptFetcherImpl::OnAuthRequired(URLRequest* request, |
| } |
| void ProxyScriptFetcherImpl::OnSSLCertificateError(URLRequest* request, |
| - int cert_error, |
| - X509Certificate* cert) { |
| + const SSLInfo& ssl_info, |
| + bool is_hsts_host) { |
| DCHECK_EQ(request, cur_request_.get()); |
| LOG(WARNING) << "SSL certificate error when fetching PAC script, aborting."; |
| // Certificate errors are in same space as net errors. |
| - result_code_ = cert_error; |
| + result_code_ = net::MapCertStatusToNetError(ssl_info.cert_status); |
|
wtc
2011/09/26 19:15:10
Remove net:: because this file is in the net names
|
| request->Cancel(); |
| } |