Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3250)

Unified Diff: chrome/browser/chromeos/options/vpn_config_view.cc

Issue 693493003: Revert "Move network_connect code to ui/chromeos/network" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 06e048eae60d921a3e47a27fb070c07f58392216..3dc445a0958c5244971593396a92c813f878f736 100644
--- a/chrome/browser/chromeos/options/vpn_config_view.cc
+++ b/chrome/browser/chromeos/options/vpn_config_view.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/chromeos/options/vpn_config_view.h"
+#include "ash/system/chromeos/network/network_connect.h"
#include "base/bind.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
@@ -23,7 +24,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"
@@ -374,7 +374,7 @@ bool VPNConfigView::Login() {
false);
}
- ui::NetworkConnect::Get()->CreateConfigurationAndConnect(&properties,
+ ash::NetworkConnect::Get()->CreateConfigurationAndConnect(&properties,
shared);
} else {
const NetworkState* vpn = NetworkHandler::Get()->network_state_handler()->
@@ -387,7 +387,7 @@ bool VPNConfigView::Login() {
}
base::DictionaryValue properties;
SetConfigProperties(&properties);
- ui::NetworkConnect::Get()->ConfigureNetworkAndConnect(
+ ash::NetworkConnect::Get()->ConfigureNetworkAndConnect(
service_path_, properties, false /* not shared */);
}
return true; // Close dialog.
@@ -1000,7 +1000,7 @@ 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()->GetErrorString(
+ error_msg = ash::NetworkConnect::Get()->GetErrorString(
vpn->last_error(), vpn->path());
}
if (!error_msg.empty()) {
« no previous file with comments | « chrome/browser/chromeos/mobile/mobile_activator.cc ('k') | chrome/browser/chromeos/options/wifi_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698