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 0f6c500f7f0112ac086174f578bcaee7e5d9ba11..7d677f295ae62f9096523f2e996e79585be3c612 100644 |
--- a/net/http/http_stream_factory_impl_job.cc |
+++ b/net/http/http_stream_factory_impl_job.cc |
@@ -863,8 +863,7 @@ int HttpStreamFactoryImpl::Job::DoInitConnectionImpl() { |
replacements.ClearRef(); |
url = url.ReplaceComponents(replacements); |
- // If QUIC is disabled on the destination port, return error. |
- if (session_->quic_stream_factory()->IsQuicDisabled(destination.port())) |
+ if (session_->quic_stream_factory()->IsQuicDisabled()) |
return ERR_QUIC_PROTOCOL_ERROR; |
} else { |
DCHECK(using_ssl_); |
@@ -993,10 +992,10 @@ int HttpStreamFactoryImpl::Job::DoInitConnectionComplete(int result) { |
} |
if (proxy_info_.is_quic() && using_quic_) { |
- // Mark QUIC proxy as bad if QUIC got disabled on the destination port. |
+ // Mark QUIC proxy as bad if QUIC got disabled. |
// Underlying QUIC layer would have closed the connection. |
HostPortPair destination = proxy_info_.proxy_server().host_port_pair(); |
- if (session_->quic_stream_factory()->IsQuicDisabled(destination.port())) { |
+ if (session_->quic_stream_factory()->IsQuicDisabled()) { |
using_quic_ = false; |
return ReconsiderProxyAfterError(ERR_QUIC_PROTOCOL_ERROR); |
} |