Index: net/http/http_stream_factory_impl.cc |
diff --git a/net/http/http_stream_factory_impl.cc b/net/http/http_stream_factory_impl.cc |
index f4c1ab290f9100596d662e944b07ac4ecb610fe9..021db3519a9e7ee31cebbab5640ffdef4a6218cd 100644 |
--- a/net/http/http_stream_factory_impl.cc |
+++ b/net/http/http_stream_factory_impl.cc |
@@ -232,6 +232,9 @@ AlternativeService HttpStreamFactoryImpl::GetAlternativeServiceRequestFor( |
if (!session_->params().enable_quic) |
return kNoAlternativeService; |
+ if (session_->quic_stream_factory()->IsQuicDisabled(origin.port())) |
+ return kNoAlternativeService; |
+ |
// TODO(rch): Figure out how to make QUIC iteract with PAC |
// scripts. By not re-writing the URL, we will query the PAC script |
// for the proxy to use to reach the original URL via TCP. But |