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

Unified Diff: ash/system/chromeos/network/network_state_list_detailed_view.cc

Issue 673713003: Create a NetworkConnect class and Delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More virtual 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: ash/system/chromeos/network/network_state_list_detailed_view.cc
diff --git a/ash/system/chromeos/network/network_state_list_detailed_view.cc b/ash/system/chromeos/network/network_state_list_detailed_view.cc
index c7ff9fb665efbd3c707c466058a54d5530e7aaeb..ec5807c5e02c1597d015176f00dea0659fea0dca 100644
--- a/ash/system/chromeos/network/network_state_list_detailed_view.cc
+++ b/ash/system/chromeos/network/network_state_list_detailed_view.cc
@@ -271,7 +271,7 @@ void NetworkStateListDetailedView::OnViewClicked(views::View* sender) {
list_type_ == LIST_TYPE_VPN ?
ash::UMA_STATUS_AREA_CONNECT_TO_VPN :
ash::UMA_STATUS_AREA_CONNECT_TO_CONFIGURED_NETWORK);
- ash::network_connect::ConnectToNetwork(service_path);
+ ash::NetworkConnect::Get()->ConnectToNetwork(service_path);
}
}
@@ -587,8 +587,8 @@ void NetworkStateListDetailedView::ToggleMobile() {
NetworkStateHandler* handler = NetworkHandler::Get()->network_state_handler();
bool enabled =
handler->IsTechnologyEnabled(NetworkTypePattern::Mobile());
- ash::network_connect::SetTechnologyEnabled(NetworkTypePattern::Mobile(),
- !enabled);
+ ash::NetworkConnect::Get()->SetTechnologyEnabled(NetworkTypePattern::Mobile(),
+ !enabled);
}
views::View* NetworkStateListDetailedView::CreateViewForNetwork(
« no previous file with comments | « ash/system/chromeos/network/network_connect.cc ('k') | ash/system/chromeos/network/network_state_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698