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

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: Drop half of this CL. 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 06651e967542d13ac5d4fbbb8b2516fe49712447..0621ed09513beefa607b507e687547a02816628a 100644
--- a/net/http/http_network_session.cc
+++ b/net/http/http_network_session.cc
@@ -363,11 +363,7 @@ bool HttpNetworkSession::IsProtocolEnabled(AlternateProtocol protocol) const {
}
void HttpNetworkSession::GetAlpnProtos(NextProtoVector* alpn_protos) const {
- if (HttpStreamFactory::spdy_enabled()) {
- *alpn_protos = next_protos_;
- } else {
- alpn_protos->clear();
- }
+ *alpn_protos = next_protos_;
}
void HttpNetworkSession::GetNpnProtos(NextProtoVector* npn_protos) const {

Powered by Google App Engine
This is Rietveld 408576698