Index: components/cronet/android/url_request_context_adapter.cc |
diff --git a/components/cronet/android/url_request_context_adapter.cc b/components/cronet/android/url_request_context_adapter.cc |
index 1a87d6879d7eb624dd44039a9ec6aebe776a70ef..0d6179a218d5082589b8fbad8fdc6b5bbb4c7d4e 100644 |
--- a/components/cronet/android/url_request_context_adapter.cc |
+++ b/components/cronet/android/url_request_context_adapter.cc |
@@ -164,7 +164,10 @@ |
new net::SdchOwner(context_->sdch_manager(), context_.get())); |
} |
+ // Currently (circa M39) enabling QUIC requires setting probability threshold. |
if (config_->enable_quic) { |
+ context_->http_server_properties() |
+ ->SetAlternativeServiceProbabilityThreshold(0.0f); |
for (size_t hint = 0; hint < config_->quic_hints.size(); ++hint) { |
const URLRequestContextConfig::QuicHint& quic_hint = |
*config_->quic_hints[hint]; |
@@ -201,7 +204,8 @@ |
net::AlternateProtocol::QUIC, "", |
static_cast<uint16_t>(quic_hint.alternate_port)); |
context_->http_server_properties()->SetAlternativeService( |
- quic_hint_host_port_pair, alternative_service, base::Time::Max()); |
+ quic_hint_host_port_pair, alternative_service, 1.0f, |
+ base::Time::Max()); |
} |
} |
load_disable_cache_ = config_->load_disable_cache; |