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

Unified Diff: net/http/http_stream_factory_impl_job_controller.cc

Issue 2109803002: Change a number of SPDY unittests from http to https. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_controller.cc
diff --git a/net/http/http_stream_factory_impl_job_controller.cc b/net/http/http_stream_factory_impl_job_controller.cc
index ae83fd959c38e71a0ebdd1779c440d2d6a0acb7b..c9fb091aa697b556e0b9548e152af8f3766a00f3 100644
--- a/net/http/http_stream_factory_impl_job_controller.cc
+++ b/net/http/http_stream_factory_impl_job_controller.cc
@@ -707,11 +707,7 @@ HttpStreamFactoryImpl::JobController::GetAlternativeServiceForInternal(
HttpStreamRequest::StreamType stream_type) {
GURL original_url = request_info.url;
- if (original_url.SchemeIs("ftp"))
- return AlternativeService();
-
- if (!session_->params().enable_alternative_service_for_insecure_origins &&
- !original_url.SchemeIs("https"))
+ if (!original_url.SchemeIs("https"))
return AlternativeService();
url::SchemeHostPort origin(original_url);

Powered by Google App Engine
This is Rietveld 408576698