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

Unified Diff: net/http/http_stream_factory_impl_job.cc

Issue 2803023004: Make HttpStreamFactoryImpl::Job::|using_ssl_| const (Closed)
Patch Set: Created 3 years, 8 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_stream_factory_impl_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c03fe25edde2e13e5360899822940fc98468cc0b..d968b68767e8b0b1418c9468408d7b227a77b6bc 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -217,7 +217,8 @@ HttpStreamFactoryImpl::Job::Job(Delegate* delegate,
enable_ip_based_pooling_(enable_ip_based_pooling),
delegate_(delegate),
job_type_(job_type),
- using_ssl_(false),
+ using_ssl_(origin_url_.SchemeIs(url::kHttpsScheme) ||
+ origin_url_.SchemeIs(url::kWssScheme)),
using_spdy_(false),
using_quic_(false),
quic_request_(session_->quic_stream_factory(),
@@ -870,8 +871,6 @@ int HttpStreamFactoryImpl::Job::DoInitConnectionImpl() {
return OK;
}
- using_ssl_ = origin_url_.SchemeIs(url::kHttpsScheme) ||
- origin_url_.SchemeIs(url::kWssScheme);
using_spdy_ = false;
if (ShouldForceQuic())
« no previous file with comments | « net/http/http_stream_factory_impl_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698