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

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: 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
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..ebec6230959f586e2f02350c543f4b018c2c8d1e 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, "",
+ 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