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

Unified Diff: net/http/http_stream_factory_impl.cc

Issue 1824903002: Change the AlternativeServiceMap with SchemeOriginPair key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unittests Created 4 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: net/http/http_stream_factory_impl.cc
diff --git a/net/http/http_stream_factory_impl.cc b/net/http/http_stream_factory_impl.cc
index 28fa8aa57c29814275666e1824debdb88f3a32ff..78ea750e9e735ace82fc64d0e2fc3e6f0098e2f3 100644
--- a/net/http/http_stream_factory_impl.cc
+++ b/net/http/http_stream_factory_impl.cc
@@ -187,10 +187,11 @@ AlternativeService HttpStreamFactoryImpl::GetAlternativeServiceFor(
return AlternativeService();
HostPortPair origin = HostPortPair::FromURL(original_url);
+ SchemeOriginPair scheme_origin(original_url.scheme(), origin);
HttpServerProperties& http_server_properties =
*session_->http_server_properties();
const AlternativeServiceVector alternative_service_vector =
- http_server_properties.GetAlternativeServices(origin);
+ http_server_properties.GetAlternativeServices(scheme_origin);
if (alternative_service_vector.empty())
return AlternativeService();

Powered by Google App Engine
This is Rietveld 408576698