Index: net/http/http_stream_factory_impl.cc |
diff --git a/net/http/http_stream_factory_impl.cc b/net/http/http_stream_factory_impl.cc |
index 35d94d779f8cefbac1cc7eed79f1c250a44cfca7..1d413f5420a28909af2536484d7ae760a6ad30d3 100644 |
--- a/net/http/http_stream_factory_impl.cc |
+++ b/net/http/http_stream_factory_impl.cc |
@@ -207,11 +207,10 @@ PortAlternateProtocolPair HttpStreamFactoryImpl::GetAlternateProtocolRequestFor( |
if (alternate.protocol == ALTERNATE_PROTOCOL_BROKEN) |
return kNoAlternateProtocol; |
- DCHECK_LE(NPN_SPDY_1, alternate.protocol); |
- DCHECK_GT(NUM_ALTERNATE_PROTOCOLS, alternate.protocol); |
- |
- if (alternate.protocol < NPN_SPDY_2) |
+ if (!IsAlternateProtocolValid(alternate.protocol)) { |
+ NOTREACHED(); |
return kNoAlternateProtocol; |
+ } |
// Some shared unix systems may have user home directories (like |
// http://foo.com/~mike) which allow users to emit headers. This is a bad |