summaryrefslogtreecommitdiffstats
path: root/net/http/http_network_layer.cc
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 21:54:59 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 21:54:59 +0000
commite1d69798cb16eb4b0f9a7c101fdbe70607e79051 (patch)
tree1ff00373d0c1d7ba6bfae96c28f71259c2ead5db /net/http/http_network_layer.cc
parent90aeba51821eeb1181778c87152e4736fc011cbd (diff)
downloadchromium_src-e1d69798cb16eb4b0f9a7c101fdbe70607e79051.zip
chromium_src-e1d69798cb16eb4b0f9a7c101fdbe70607e79051.tar.gz
chromium_src-e1d69798cb16eb4b0f9a7c101fdbe70607e79051.tar.bz2
Enable Alternate-Protocol support by default when NPN support is enabled.
Review URL: http://codereview.chromium.org/2015019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_layer.cc')
-rw-r--r--net/http/http_network_layer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http/http_network_layer.cc b/net/http/http_network_layer.cc
index 294e54e..09ee5cd 100644
--- a/net/http/http_network_layer.cc
+++ b/net/http/http_network_layer.cc
@@ -140,6 +140,7 @@ void HttpNetworkLayer::EnableSpdy(const std::string& mode) {
} else if (option == kDisableCompression) {
spdy::SpdyFramer::set_enable_compression_default(false);
} else if (option == kEnableNPN) {
+ net::HttpNetworkTransaction::SetUseAlternateProtocols(true);
// Except for the first element, the order is irrelevant. First element
// specifies the fallback in case nothing matches
// (SSLClientSocket::kNextProtoNoOverlap). Otherwise, the SSL library