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

Unified Diff: net/spdy/spdy_http_stream.cc

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_EXPORT to *PortOnAddressList. Created 8 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
Index: net/spdy/spdy_http_stream.cc
diff --git a/net/spdy/spdy_http_stream.cc b/net/spdy/spdy_http_stream.cc
index cdda4f2f9a085f6d193d35c9f68cf5278896576d..959cca30682481ab9f7cc51a0c8898218a322ce5 100644
--- a/net/spdy/spdy_http_stream.cc
+++ b/net/spdy/spdy_http_stream.cc
@@ -254,7 +254,7 @@ int SpdyHttpStream::SendRequest(const HttpRequestHeaders& request_headers,
int result = stream_->GetPeerAddress(&address);
if (result != OK)
return result;
- response_info_->socket_address = HostPortPair::FromAddrInfo(address.head());
+ response_info_->socket_address = HostPortPair::FromIPEndPoint(address[0]);
eroman 2012/05/04 01:08:41 nit: [0] vs front(). I guess front() might make it
bool has_upload_data = request_body_stream_.get() != NULL;
result = stream_->SendRequest(has_upload_data);

Powered by Google App Engine
This is Rietveld 408576698