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

Unified Diff: components/cronet/android/url_request_context_adapter.cc

Issue 1699653002: Remove support for Alt-Svc/Alternate Protocol Probability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cronet and iOS Created 4 years, 10 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 | « chrome/common/chrome_switches.cc ('k') | ios/chrome/browser/ios_chrome_io_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
}
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | ios/chrome/browser/ios_chrome_io_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698