| Index: chrome/browser/net/network_stats.cc
|
| diff --git a/chrome/browser/net/network_stats.cc b/chrome/browser/net/network_stats.cc
|
| index a22e6562f2a3bd85707a45798333597be4ba3718..39a71c95340a5be7ec1b69dc8ec9ed834b666f30 100644
|
| --- a/chrome/browser/net/network_stats.cc
|
| +++ b/chrome/browser/net/network_stats.cc
|
| @@ -19,7 +19,6 @@
|
| #include "net/base/net_errors.h"
|
| #include "net/base/net_util.h"
|
| #include "net/base/network_change_notifier.h"
|
| -#include "net/base/sys_addrinfo.h"
|
| #include "net/base/test_completion_callback.h"
|
| #include "net/socket/tcp_client_socket.h"
|
| #include "net/udp/udp_client_socket.h"
|
| @@ -509,14 +508,12 @@ bool UDPStatsClient::DoConnect(int result) {
|
| }
|
| set_socket(udp_socket);
|
|
|
| - const addrinfo* address = GetAddressList().head();
|
| - if (!address) {
|
| + if (GetAddressList().empty()) {
|
| Finish(RESOLVE_FAILED, net::ERR_INVALID_ARGUMENT);
|
| return false;
|
| }
|
|
|
| - net::IPEndPoint endpoint;
|
| - endpoint.FromSockAddr(address->ai_addr, address->ai_addrlen);
|
| + const net::IPEndPoint& endpoint = GetAddressList().front();
|
| int rv = udp_socket->Connect(endpoint);
|
| if (rv < 0) {
|
| Finish(CONNECT_FAILED, rv);
|
|
|