summaryrefslogtreecommitdiffstats
path: root/net/spdy/spdy_session_pool.cc
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 15:12:05 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-26 15:12:05 +0000
commit5c288bc4e2f4671fd835424f180937e37303e2c7 (patch)
tree0356782130f22e18117395e3ca8d6c556200308e /net/spdy/spdy_session_pool.cc
parent0f16f9d6e6e6f0ad70bbae44f578dcb0cb41341e (diff)
downloadchromium_src-5c288bc4e2f4671fd835424f180937e37303e2c7.zip
chromium_src-5c288bc4e2f4671fd835424f180937e37303e2c7.tar.gz
chromium_src-5c288bc4e2f4671fd835424f180937e37303e2c7.tar.bz2
Minor cleanup of unit tests for spdy_session_ool.
Fixed the comments from Wan-Teh in CL http://codereview.chromium.org/7349023/ BUG=89094 R=wtc TEST=net unit tests. Review URL: http://codereview.chromium.org/7471056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94094 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session_pool.cc')
-rw-r--r--net/spdy/spdy_session_pool.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
index e8324f4..c0a5194 100644
--- a/net/spdy/spdy_session_pool.cc
+++ b/net/spdy/spdy_session_pool.cc
@@ -157,10 +157,8 @@ net::Error SpdySessionPool::GetSpdySessionFromSocket(
// direct connection.
if (g_enable_ip_pooling && host_port_proxy_pair.second.is_direct()) {
AddressList addresses;
- if (connection->socket()->GetPeerAddress(&addresses) == OK) {
- const addrinfo* address = addresses.head();
- AddAlias(address, host_port_proxy_pair);
- }
+ if (connection->socket()->GetPeerAddress(&addresses) == OK)
+ AddAlias(addresses.head(), host_port_proxy_pair);
}
// Now we can initialize the session with the SSL socket.