Chromium Code Reviews| Index: chrome/browser/chromeos/options/vpn_config_view.cc |
| diff --git a/chrome/browser/chromeos/options/vpn_config_view.cc b/chrome/browser/chromeos/options/vpn_config_view.cc |
| index 3f14981cf350b6f81bb3ff8f45559046f777d747..ac3b0a2fc54eb1123a42353d1ff09e2c3692c493 100644 |
| --- a/chrome/browser/chromeos/options/vpn_config_view.cc |
| +++ b/chrome/browser/chromeos/options/vpn_config_view.cc |
| @@ -13,11 +13,13 @@ |
| #include "base/strings/utf_string_conversions.h" |
| #include "chrome/browser/chromeos/enrollment_dialog_view.h" |
| #include "chrome/browser/chromeos/net/onc_utils.h" |
| +#include "chrome/browser/chromeos/net/shill_error.h" |
| #include "chrome/browser/profiles/profile_manager.h" |
| #include "chrome/common/net/x509_certificate_model.h" |
| #include "chrome/grit/generated_resources.h" |
| #include "chromeos/login/login_state.h" |
| #include "chromeos/network/network_configuration_handler.h" |
| +#include "chromeos/network/network_connect.h" |
| #include "chromeos/network/network_event_log.h" |
| #include "chromeos/network/network_state.h" |
| #include "chromeos/network/network_state_handler.h" |
| @@ -26,7 +28,6 @@ |
| #include "third_party/cros_system_api/dbus/service_constants.h" |
| #include "ui/base/l10n/l10n_util.h" |
| #include "ui/base/models/combobox_model.h" |
| -#include "ui/chromeos/network/network_connect.h" |
| #include "ui/events/event.h" |
| #include "ui/views/controls/button/checkbox.h" |
| #include "ui/views/controls/combobox/combobox.h" |
| @@ -379,8 +380,8 @@ bool VPNConfigView::Login() { |
| false); |
| } |
| - ui::NetworkConnect::Get()->CreateConfigurationAndConnect(&properties, |
| - shared); |
| + chromeos::NetworkConnect::Get()->CreateConfigurationAndConnect(&properties, |
|
James Cook
2016/10/20 00:11:43
chromeos:: not needed (and probably in many other
stevenjb
2016/10/20 00:57:23
Fixed throughout.
|
| + shared); |
| } else { |
| const NetworkState* vpn = NetworkHandler::Get()->network_state_handler()-> |
| GetNetworkState(service_path_); |
| @@ -392,7 +393,7 @@ bool VPNConfigView::Login() { |
| } |
| base::DictionaryValue properties; |
| SetConfigProperties(&properties); |
| - ui::NetworkConnect::Get()->ConfigureNetworkAndConnect( |
| + chromeos::NetworkConnect::Get()->ConfigureNetworkAndConnect( |
| service_path_, properties, false /* not shared */); |
| } |
| return true; // Close dialog. |
| @@ -1004,8 +1005,8 @@ void VPNConfigView::UpdateErrorLabel() { |
| const NetworkState* vpn = NetworkHandler::Get()->network_state_handler()-> |
| GetNetworkState(service_path_); |
| if (vpn && vpn->connection_state() == shill::kStateFailure) |
| - error_msg = ui::NetworkConnect::Get()->GetShillErrorString( |
| - vpn->last_error(), vpn->path()); |
| + error_msg = |
| + shill_error::GetShillErrorString(vpn->last_error(), vpn->guid()); |
| } |
| if (!error_msg.empty()) { |
| error_label_->SetText(error_msg); |