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

Unified Diff: net/http/http_server_properties.cc

Issue 2353333005: Remove AlternateProtocol::NPN_SPDY_3_1. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.cc
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc
index a1a7ed61ecb56033390b15747744f13427c448a9..15ac887ef47f75aa0247e304c2956db75f4e1b11 100644
--- a/net/http/http_server_properties.cc
+++ b/net/http/http_server_properties.cc
@@ -36,8 +36,6 @@ const char* AlternateProtocolToString(AlternateProtocol protocol) {
return "quic";
case NPN_HTTP_2:
return "h2";
- case NPN_SPDY_3_1:
- return "npn-spdy/3.1";
case UNINITIALIZED_ALTERNATE_PROTOCOL:
return "Uninitialized";
}
@@ -50,12 +48,13 @@ AlternateProtocol AlternateProtocolFromString(const std::string& str) {
return QUIC;
if (str == "h2")
return NPN_HTTP_2;
- // "npn-h2" is accepted here so that persisted settings with the old string
- // can be loaded from disk. TODO(bnc): Remove around 2016 December.
+ // "npn-h2" and "npn-spdy/3.1" are accepted here so that persisted settings
+ // with the old string can be loaded from disk. TODO(bnc): Remove around
+ // 2016 December.
if (str == "npn-h2")
return NPN_HTTP_2;
if (str == "npn-spdy/3.1")
- return NPN_SPDY_3_1;
+ return NPN_HTTP_2;
return UNINITIALIZED_ALTERNATE_PROTOCOL;
}
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698