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

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

Issue 1018943002: Update HttpServerProperties::*AlternateProtocol* interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 9 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 843d9a97d0e09600dc911358f3795321dbb72b24..1a633587b2597fc5603e738c4a95520496c68d10 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.cc
+++ b/components/cronet/android/cronet_url_request_context_adapter.cc
@@ -197,11 +197,11 @@ void CronetURLRequestContextAdapter::InitializeOnNetworkThread(
net::HostPortPair quic_hint_host_port_pair(canon_host,
quic_hint.port);
- context_->http_server_properties()->SetAlternateProtocol(
- quic_hint_host_port_pair,
- static_cast<uint16>(quic_hint.alternate_port),
- net::AlternateProtocol::QUIC,
- 1.0f);
+ net::AlternativeService alternative_service(
+ net::AlternateProtocol::QUIC, "",
Bence 2015/03/20 13:46:06 Note: empty host string means default host, that i
+ static_cast<uint16>(quic_hint.alternate_port));
+ context_->http_server_properties()->SetAlternativeService(
+ quic_hint_host_port_pair, alternative_service, 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