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

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

Issue 1018943002: Update HttpServerProperties::*AlternateProtocol* interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 97f22b8472bdee8edfd9da536cb2dae503cd6c3c..d8250902a00b5424c740300f0be79d64f07ff77f 100644
--- a/components/cronet/android/url_request_context_adapter.cc
+++ b/components/cronet/android/url_request_context_adapter.cc
@@ -187,11 +187,11 @@ void URLRequestContextAdapter::InitRequestContextOnNetworkThread() {
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, quic_hint_host_port_pair.host(),
Ryan Hamilton 2015/03/18 22:55:42 I wonder if the host should be "".
Bence 2015/03/19 12:45:39 Done.
+ static_cast<uint16>(quic_hint.alternate_port));
+ context_->http_server_properties()->SetAlternativeService(
+ quic_hint_host_port_pair, alternative_service, 1.0f);
}
}
load_disable_cache_ = config_->load_disable_cache;

Powered by Google App Engine
This is Rietveld 408576698