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

Unified Diff: net/http/http_network_layer.cc

Issue 339663010: Add a probability to Alternate-Protocol support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better plumbing Created 6 years, 6 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_network_layer.cc
diff --git a/net/http/http_network_layer.cc b/net/http/http_network_layer.cc
index 0704de420de32d29349e8e6d50f311387a362db3..258555f535ad2deae82364ae7d42290b77634b14 100644
--- a/net/http/http_network_layer.cc
+++ b/net/http/http_network_layer.cc
@@ -51,9 +51,7 @@ HttpTransactionFactory* HttpNetworkLayer::CreateFactory(
// static
void HttpNetworkLayer::ForceAlternateProtocol() {
- PortAlternateProtocolPair pair;
- pair.port = 443;
- pair.protocol = NPN_SPDY_3;
+ AlternateProtocolInfo pair(443, NPN_SPDY_3, 1);
HttpServerPropertiesImpl::ForceAlternateProtocol(pair);
}

Powered by Google App Engine
This is Rietveld 408576698