| Index: ash/system/chromeos/network/network_connect.cc
|
| ===================================================================
|
| --- ash/system/chromeos/network/network_connect.cc (revision 221717)
|
| +++ ash/system/chromeos/network/network_connect.cc (working copy)
|
| @@ -66,7 +66,8 @@
|
| if (error_name == NetworkConnectionHandler::kErrorConnectCanceled)
|
| return;
|
|
|
| - if (error_name == NetworkConnectionHandler::kErrorPassphraseRequired ||
|
| + if (error_name == flimflam::kErrorBadPassphrase ||
|
| + error_name == NetworkConnectionHandler::kErrorPassphraseRequired ||
|
| error_name == NetworkConnectionHandler::kErrorConfigurationRequired ||
|
| error_name == NetworkConnectionHandler::kErrorAuthenticationRequired) {
|
| ash::Shell::GetInstance()->system_tray_delegate()->ConfigureNetwork(
|
| @@ -96,7 +97,7 @@
|
| ShowErrorNotification(error_name, service_path);
|
|
|
| // Show a configure dialog for ConnectFailed errors.
|
| - if (error_name != NetworkConnectionHandler::kErrorConnectFailed)
|
| + if (error_name != flimflam::kErrorConnectFailed)
|
| return;
|
|
|
| // If Shill reports an InProgress error, don't try to configure the network.
|
| @@ -137,11 +138,10 @@
|
| }
|
|
|
| void OnActivateFailed(const std::string& service_path,
|
| - const std::string& error_name,
|
| + const std::string& error_name,
|
| scoped_ptr<base::DictionaryValue> error_data) {
|
| NET_LOG_ERROR("Unable to activate network", service_path);
|
| - ShowErrorNotification(
|
| - NetworkConnectionHandler::kErrorActivateFailed, service_path);
|
| + ShowErrorNotification(network_connect::kErrorActivateFailed, service_path);
|
| }
|
|
|
| void OnActivateSucceeded(const std::string& service_path) {
|
| @@ -246,6 +246,8 @@
|
|
|
| namespace network_connect {
|
|
|
| +const char kErrorActivateFailed[] = "activate-failed";
|
| +
|
| void ConnectToNetwork(const std::string& service_path,
|
| gfx::NativeWindow owning_window) {
|
| const bool check_error_state = true;
|
|
|