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 0d6179a218d5082589b8fbad8fdc6b5bbb4c7d4e..92ba207a210e80db44490addbecf6e7ba9a73bce 100644 |
--- a/components/cronet/android/url_request_context_adapter.cc |
+++ b/components/cronet/android/url_request_context_adapter.cc |
@@ -166,8 +166,6 @@ void URLRequestContextAdapter::InitRequestContextOnNetworkThread() { |
// Currently (circa M39) enabling QUIC requires setting probability threshold. |
mef
2016/03/04 18:40:40
I guess this comment is now outdated.
Ryan Hamilton
2016/03/04 19:17:56
Done.
|
if (config_->enable_quic) { |
mef
2016/03/04 18:40:40
This is legacy api, you also need to update curren
Ryan Hamilton
2016/03/04 19:17:56
Heh, yeah, I just noticed that :> Done.
|
- 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]; |
@@ -204,7 +202,7 @@ void URLRequestContextAdapter::InitRequestContextOnNetworkThread() { |
net::AlternateProtocol::QUIC, "", |
static_cast<uint16_t>(quic_hint.alternate_port)); |
context_->http_server_properties()->SetAlternativeService( |
- quic_hint_host_port_pair, alternative_service, 1.0f, |
+ quic_hint_host_port_pair, alternative_service, |
base::Time::Max()); |
} |
} |