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; |
} |