Chromium Code Reviews| Index: chrome/browser/chromeos/cros/network_library_impl_cros.cc |
| diff --git a/chrome/browser/chromeos/cros/network_library_impl_cros.cc b/chrome/browser/chromeos/cros/network_library_impl_cros.cc |
| index 09f2eb92cbd187acd3720ebd6b3be5280bf37580..edec4c9de39fec63479100975e7925bb159d9d61 100644 |
| --- a/chrome/browser/chromeos/cros/network_library_impl_cros.cc |
| +++ b/chrome/browser/chromeos/cros/network_library_impl_cros.cc |
| @@ -839,11 +839,16 @@ void NetworkLibraryImplCros::UpdateNetworkServiceList( |
| << " State = " << network->GetStateString() |
| << " connecting = " << network->connecting() |
| << " connection_started = " << network->connection_started(); |
| + WifiNetwork* wifi = NULL; |
| + if (network->type() == TYPE_WIFI) |
| + wifi = static_cast<WifiNetwork*>(network); |
| if (network->failed() && network->notify_failure()) { |
| // We have not notified observers of a connection failure yet. |
| AddNetwork(network); |
| - } else if (network->connecting() && network->connection_started()) { |
| - // Network was in connecting state; set state to failed. |
| + } else if (network->connecting() && network->connection_started() && |
| + !(wifi && wifi->hidden_ssid())) { |
|
stevenjb
2012/07/31 19:10:52
nit: alignment
|
| + // Network was in connecting state; set state to failed, but not if it |
| + // had a hidden SSID (since that won't appear in the scanning list). |
| VLOG(2) << "Removed network was connecting: " << network->name(); |
| network->SetState(STATE_FAILURE); |
| AddNetwork(network); |