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 962f513dc20af36ad4f58b4218d2bf8341a9be8e..06a5c0b6835797b9ee082764a10615d2e1e1b469 100644 |
--- a/net/http/http_stream_factory_impl.cc |
+++ b/net/http/http_stream_factory_impl.cc |
@@ -368,6 +368,18 @@ void HttpStreamFactoryImpl::OnPreconnectsComplete(const Job* job) { |
} |
bool HttpStreamFactoryImpl::IsQuicWhitelistedForHost(const std::string& host) { |
+ bool whitelist_needed = false; |
+ for (QuicVersion version : session_->params().quic_supported_versions) { |
+ if (version <= QUIC_VERSION_30) { |
+ whitelist_needed = true; |
+ break; |
+ } |
+ } |
+ |
+ // The QUIC whitelist is not needed in QUIC versions after 30. |
+ if (!whitelist_needed) |
+ return true; |
+ |
if (session_->params().transport_security_state->IsGooglePinnedHost(host)) |
return true; |