Chromium Code Reviews| Index: net/socket/tcp_client_socket_win.cc |
| diff --git a/net/socket/tcp_client_socket_win.cc b/net/socket/tcp_client_socket_win.cc |
| index 4990887cd94738072d5f26bad875968e7a6be42d..aae8969c435df2fc3a9f368c9b81ad02527e5e3a 100644 |
| --- a/net/socket/tcp_client_socket_win.cc |
| +++ b/net/socket/tcp_client_socket_win.cc |
| @@ -142,7 +142,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; |
| } |