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

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

Issue 665083009: ABANDONED Handle multiple AlternateProtocols for each HostPortPair. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: 18. Created 5 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 | « no previous file | components/cronet/android/url_request_context_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/cronet_url_request_context_adapter.cc
diff --git a/components/cronet/android/cronet_url_request_context_adapter.cc b/components/cronet/android/cronet_url_request_context_adapter.cc
index 39c585a84423e79b81ea0c700d5bc9536c7ff90f..3600f53d8cfe82502301077b463fd9e0b9719af0 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.cc
+++ b/components/cronet/android/cronet_url_request_context_adapter.cc
@@ -197,11 +197,10 @@ void CronetURLRequestContextAdapter::InitializeOnNetworkThread(
net::HostPortPair quic_hint_host_port_pair(canon_host,
quic_hint.port);
- context_->http_server_properties()->SetAlternateProtocol(
+ context_->http_server_properties()->AddAlternateProtocol(
quic_hint_host_port_pair,
static_cast<uint16>(quic_hint.alternate_port),
- net::AlternateProtocol::QUIC,
- 1.0f);
+ net::AlternateProtocol::QUIC, 1.0f);
}
}
« no previous file with comments | « no previous file | components/cronet/android/url_request_context_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698