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

Unified Diff: net/http/http_stream_factory_impl_job.cc

Issue 1069413002: Inline ClientSocketPoolManager::GroupTypeFromScheme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | net/socket/client_socket_pool_manager.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_job.cc
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc
index d4a1727ad530a5947a1ae60b80932445eb4df0c1..bea544759f1b3e570fd9b7e23454019cb07fab2b 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -1494,8 +1494,14 @@ HttpStreamFactoryImpl::Job::GetSocketGroup() const {
if (ShouldForceSpdySSL())
return ClientSocketPoolManager::SSL_GROUP;
- return ClientSocketPoolManager::GroupTypeFromScheme(
- alternative_service_url_.scheme());
+ std::string scheme = alternative_service_url_.scheme();
+ if (scheme == "ftp")
+ return ClientSocketPoolManager::FTP_GROUP;
+
+ if (scheme == "https" || scheme == "wss")
+ return ClientSocketPoolManager::SSL_GROUP;
+
+ return ClientSocketPoolManager::NORMAL_GROUP;
}
} // namespace net
« no previous file with comments | « no previous file | net/socket/client_socket_pool_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698