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

Unified Diff: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc

Issue 686503002: Move network_connect code to ui/chromeos/network (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet more gn fixes 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/ui/webui/options/chromeos/internet_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
index b3d430771ee2c969c5d158296eba748b7e13856f..58a432069cafe9a7dcd23ee603fdc542052cb35a 100644
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
@@ -10,7 +10,6 @@
#include <string>
#include <vector>
-#include "ash/system/chromeos/network/network_connect.h"
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -55,6 +54,7 @@
#include "third_party/cros_system_api/dbus/service_constants.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/webui/web_ui_util.h"
+#include "ui/chromeos/network/network_connect.h"
#include "ui/chromeos/network/network_icon.h"
#include "ui/gfx/image/image_skia.h"
@@ -247,7 +247,7 @@ scoped_ptr<base::DictionaryValue> PopulateConnectionDetails(
dictionary->SetString(kNetworkInfoKeyServicePath, network->path());
// Append a Chrome specific translated error message.
dictionary->SetString(kTagErrorMessage,
- ash::NetworkConnect::Get()->GetErrorString(
+ ui::NetworkConnect::Get()->GetErrorString(
network->error(), network->path()));
return dictionary.Pass();
@@ -397,7 +397,7 @@ void InternetOptionsHandler::ShowMorePlanInfoCallback(
NOTREACHED();
return;
}
- ash::NetworkConnect::Get()->ShowMobileSetup(service_path);
+ ui::NetworkConnect::Get()->ShowMobileSetup(service_path);
}
void InternetOptionsHandler::SetApnCallback(const base::ListValue* args) {
@@ -467,7 +467,7 @@ void InternetOptionsHandler::CarrierStatusCallback() {
const NetworkState* network =
handler->FirstNetworkByType(NetworkTypePattern::Cellular());
if (network && network->path() == details_path_) {
- ash::NetworkConnect::Get()->ActivateCellular(network->path());
+ ui::NetworkConnect::Get()->ActivateCellular(network->path());
UpdateConnectionData(network->path());
}
}
@@ -586,7 +586,7 @@ void InternetOptionsHandler::StartConnectCallback(const base::ListValue* args) {
NOTREACHED();
return;
}
- ash::NetworkConnect::Get()->ConnectToNetwork(service_path);
+ ui::NetworkConnect::Get()->ConnectToNetwork(service_path);
}
void InternetOptionsHandler::StartDisconnectCallback(
@@ -892,7 +892,7 @@ void InternetOptionsHandler::NetworkCommandCallback(
} else if (command == kTagConfigure) {
NetworkConfigView::Show(service_path, GetNativeWindow());
} else if (command == kTagActivate && type == shill::kTypeCellular) {
- ash::NetworkConnect::Get()->ActivateCellular(service_path);
+ ui::NetworkConnect::Get()->ActivateCellular(service_path);
// Activation may update network properties (e.g. ActivationState), so
// request them here in case they change.
UpdateConnectionData(service_path);

Powered by Google App Engine
This is Rietveld 408576698