| Index: net/http/http_stream_factory_impl_job.cc
|
| diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc
|
| index 563dc50bfcf8bf2269ae706cb2bafd60b1fcfdbf..a2f0c5bdd9a7c09957e8c1be337bea6a5885921a 100644
|
| --- a/net/http/http_stream_factory_impl_job.cc
|
| +++ b/net/http/http_stream_factory_impl_job.cc
|
| @@ -784,23 +784,22 @@ int HttpStreamFactoryImpl::Job::DoResolveProxy() {
|
| GURL::Replacements replacements;
|
| // new_port needs to be in scope here because GURL::Replacements references
|
| // the memory contained by it directly.
|
| const std::string new_port = base::UintToString(alternative_service_.port);
|
| replacements.SetSchemeStr("https");
|
| replacements.SetPortStr(new_port);
|
| url_for_proxy = url_for_proxy.ReplaceComponents(replacements);
|
| }
|
|
|
| return session_->proxy_service()->ResolveProxy(
|
| - url_for_proxy, request_info_.method, request_info_.load_flags,
|
| - &proxy_info_, io_callback_, &pac_request_,
|
| - session_->params().proxy_delegate, net_log_);
|
| + url_for_proxy, request_info_.method, &proxy_info_, io_callback_,
|
| + &pac_request_, session_->params().proxy_delegate, net_log_);
|
| }
|
|
|
| int HttpStreamFactoryImpl::Job::DoResolveProxyComplete(int result) {
|
| pac_request_ = NULL;
|
|
|
| if (result == OK) {
|
| // Remove unsupported proxies from the list.
|
| int supported_proxies =
|
| ProxyServer::SCHEME_DIRECT | ProxyServer::SCHEME_HTTP |
|
| ProxyServer::SCHEME_HTTPS | ProxyServer::SCHEME_SOCKS4 |
|
| @@ -1527,23 +1526,22 @@ int HttpStreamFactoryImpl::Job::ReconsiderProxyAfterError(int error) {
|
|
|
| if (request_info_.load_flags & LOAD_BYPASS_PROXY)
|
| return error;
|
|
|
| if (proxy_info_.is_https() && proxy_ssl_config_.send_client_cert) {
|
| session_->ssl_client_auth_cache()->Remove(
|
| proxy_info_.proxy_server().host_port_pair());
|
| }
|
|
|
| int rv = session_->proxy_service()->ReconsiderProxyAfterError(
|
| - request_info_.url, request_info_.method, request_info_.load_flags, error,
|
| - &proxy_info_, io_callback_, &pac_request_,
|
| - session_->params().proxy_delegate, net_log_);
|
| + request_info_.url, request_info_.method, error, &proxy_info_,
|
| + io_callback_, &pac_request_, session_->params().proxy_delegate, net_log_);
|
| if (rv == OK || rv == ERR_IO_PENDING) {
|
| // If the error was during connection setup, there is no socket to
|
| // disconnect.
|
| if (connection_->socket())
|
| connection_->socket()->Disconnect();
|
| connection_->Reset();
|
| delegate_->RemoveRequestFromSpdySessionRequestMapForJob(this);
|
| next_state_ = STATE_RESOLVE_PROXY_COMPLETE;
|
| } else {
|
| // If ReconsiderProxyAfterError() failed synchronously, it means
|
|
|