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

Unified Diff: net/http/http_network_session.cc

Issue 2140733002: Remove HttpStreamFactory::spdy_enabled_ static member and accessors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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_session.cc
diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc
index b63881d4c0a4952ca6768234bd6e55cf8c4dfd8d..5270e5dc20877916f0df3b1350ffde1ce2510cd3 100644
--- a/net/http/http_network_session.cc
+++ b/net/http/http_network_session.cc
@@ -366,17 +366,7 @@ bool HttpNetworkSession::IsProtocolEnabled(AlternateProtocol protocol) const {
}
void HttpNetworkSession::GetAlpnProtos(NextProtoVector* alpn_protos) const {
- if (HttpStreamFactory::spdy_enabled()) {
- *alpn_protos = next_protos_;
- } else {
- // HttpStreamFactory::spdy_enabled() only affects SPDY/3.1,
- // but not other ALPN protocols.
- alpn_protos->clear();
- for (auto proto : next_protos_) {
- if (proto != kProtoSPDY31)
- alpn_protos->push_back(proto);
- }
- }
+ *alpn_protos = next_protos_;
}
void HttpNetworkSession::GetNpnProtos(NextProtoVector* npn_protos) const {

Powered by Google App Engine
This is Rietveld 408576698