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

Unified Diff: net/spdy/spdy_session_pool.cc

Issue 169053004: Remove a bunch of unused network flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 10 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/spdy/spdy_session_pool.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_pool.cc
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
index 10bd52ff566a2c9506efbbe8a8ea674f21b114b8..093db1eb9e574812bd773829397e89e8a748a4e6 100644
--- a/net/spdy/spdy_session_pool.cc
+++ b/net/spdy/spdy_session_pool.cc
@@ -32,7 +32,6 @@ SpdySessionPool::SpdySessionPool(
SSLConfigService* ssl_config_service,
const base::WeakPtr<HttpServerProperties>& http_server_properties,
bool force_single_domain,
- bool enable_ip_pooling,
bool enable_compression,
bool enable_ping_based_connection_checking,
NextProto default_protocol,
@@ -47,7 +46,6 @@ SpdySessionPool::SpdySessionPool(
verify_domain_authentication_(true),
enable_sending_initial_data_(true),
force_single_domain_(force_single_domain),
- enable_ip_pooling_(enable_ip_pooling),
enable_compression_(enable_compression),
enable_ping_based_connection_checking_(
enable_ping_based_connection_checking),
@@ -129,7 +127,7 @@ net::Error SpdySessionPool::CreateAvailableSessionFromSocket(
// potentially be pooled with this one. Because GetPeerAddress()
// reports the proxy's address instead of the origin server, check
// to see if this is a direct connection.
- if (enable_ip_pooling_ && key.proxy_server().is_direct()) {
+ if (key.proxy_server().is_direct()) {
IPEndPoint address;
if ((*available_session)->GetPeerAddress(&address) == OK)
aliases_[address] = key;
@@ -151,9 +149,6 @@ base::WeakPtr<SpdySession> SpdySessionPool::FindAvailableSession(
return it->second;
}
- if (!enable_ip_pooling_)
- return base::WeakPtr<SpdySession>();
-
// Look up the key's from the resolver's cache.
net::HostResolver::RequestInfo resolve_info(key.host_port_pair());
AddressList addresses;
« no previous file with comments | « net/spdy/spdy_session_pool.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698