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

Unified Diff: net/http/http_stream_factory_impl.cc

Issue 2359153003: Minor cleanups in HttpStreamFactoryImpl and member classes. (Closed)
Patch Set: Nit. 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
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e0bf489f7850ebf9b2e9d84aa76185a937b3dfe9..e1c0d2dec3776742b2d27c9ac43e77f3d9858b95 100644
--- a/net/http/http_stream_factory_impl.cc
+++ b/net/http/http_stream_factory_impl.cc
@@ -21,6 +21,7 @@
#include "net/spdy/bidirectional_stream_spdy_impl.h"
#include "net/spdy/spdy_http_stream.h"
#include "url/gurl.h"
+#include "url/url_constants.h"
namespace net {
@@ -218,7 +219,8 @@ void HttpStreamFactoryImpl::OnNewSpdySessionReady(
used_ssl_config, used_proxy_info,
new BidirectionalStreamSpdyImpl(spdy_session));
} else {
- bool use_relative_url = direct || request->url().SchemeIs("https");
+ bool use_relative_url =
+ direct || request->url().SchemeIs(url::kHttpsScheme);
request->OnStreamReady(
used_ssl_config, used_proxy_info,
new SpdyHttpStream(spdy_session, use_relative_url));
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698