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

Unified Diff: net/http/http_stream_factory_impl_job.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
Index: net/http/http_stream_factory_impl_job.cc
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc
index bc4974565cac08be92bc61770b7ce70d0c8bd391..361aaa6adb4d4cf43883128eca232b2dff545b57 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -1315,8 +1315,7 @@ bool HttpStreamFactoryImpl::Job::IsHttpsProxyAndHttpUrl() const {
}
bool HttpStreamFactoryImpl::Job::IsSpdyAlternative() const {
- return alternative_service_.protocol >= NPN_SPDY_MINIMUM_VERSION &&
- alternative_service_.protocol <= NPN_SPDY_MAXIMUM_VERSION;
+ return alternative_service_.protocol == NPN_HTTP_2;
}
bool HttpStreamFactoryImpl::Job::IsQuicAlternative() const {
« no previous file with comments | « net/http/http_server_properties_manager_unittest.cc ('k') | net/http/http_stream_factory_impl_job_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698