Chromium Code Reviews| Index: net/socket/tcp_client_socket_libevent.cc |
| diff --git a/net/socket/tcp_client_socket_libevent.cc b/net/socket/tcp_client_socket_libevent.cc |
| index 972d75de141af569b7a91e3971fd388643f67822..063ca4939f468ff5e64bcc0639ecc7aefd6288b4 100644 |
| --- a/net/socket/tcp_client_socket_libevent.cc |
| +++ b/net/socket/tcp_client_socket_libevent.cc |
| @@ -108,7 +108,8 @@ int MapConnectError(int os_error) { |
| // Give a more specific error when the user is offline. |
| if (net_error == ERR_ADDRESS_UNREACHABLE && |
| - NetworkChangeNotifier::IsOffline()) { |
| + NetworkChangeNotifier::GetConnectionType() == |
| + NetworkChangeNotifier::CONNECTION_NONE) { |
|
wtc
2012/05/11 01:35:05
Nit: this line doesn't need to be indented.
|
| return ERR_INTERNET_DISCONNECTED; |
| } |
| return net_error; |