Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: net/http/http_stream_factory_impl_job_controller.cc

Issue 2546533003: Respect QuicAllowed policy for new streams (Closed)
Patch Set: Revert accidental format Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory_impl_job_controller.cc
diff --git a/net/http/http_stream_factory_impl_job_controller.cc b/net/http/http_stream_factory_impl_job_controller.cc
index ac357011edefabc627eda42049e7444741008132..c72fd3db7148254fa21964d411d9c5f363b138f9 100644
--- a/net/http/http_stream_factory_impl_job_controller.cc
+++ b/net/http/http_stream_factory_impl_job_controller.cc
@@ -956,7 +956,7 @@ HttpStreamFactoryImpl::JobController::GetAlternativeServiceForInternal(
}
quic_all_broken = false;
- if (!session_->params().enable_quic)
+ if (!session_->IsQuicEnabled())
continue;
if (!IsQuicWhitelistedForHost(origin.host()))
@@ -1056,7 +1056,7 @@ bool HttpStreamFactoryImpl::JobController::
if (alternative_proxy_server->is_quic()) {
// Check that QUIC is enabled globally, and it is not disabled.
- if (!session_->params().enable_quic ||
+ if (!session_->IsQuicEnabled() ||
session_->quic_stream_factory()->IsQuicDisabled()) {
return false;
}
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698