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

Unified Diff: ash/common/system/chromeos/network/vpn_list_view.cc

Issue 2775973002: Promotes more accessors from WmShell to Shell (Closed)
Patch Set: feedback Created 3 years, 9 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/common/system/chromeos/network/vpn_list_view.cc
diff --git a/ash/common/system/chromeos/network/vpn_list_view.cc b/ash/common/system/chromeos/network/vpn_list_view.cc
index 8069efbd484f744204cca548a0b5c11137c73c23..2720c5700b7237609305dc06a11a64b72b59b657 100644
--- a/ash/common/system/chromeos/network/vpn_list_view.cc
+++ b/ash/common/system/chromeos/network/vpn_list_view.cc
@@ -245,11 +245,11 @@ void VPNListNetworkEntry::SetupConnectingItem(const base::string16& text,
} // namespace
VPNListView::VPNListView(NetworkListDelegate* delegate) : delegate_(delegate) {
- WmShell::Get()->vpn_list()->AddObserver(this);
+ Shell::Get()->vpn_list()->AddObserver(this);
}
VPNListView::~VPNListView() {
- WmShell::Get()->vpn_list()->RemoveObserver(this);
+ Shell::Get()->vpn_list()->RemoveObserver(this);
}
void VPNListView::Update() {
@@ -397,7 +397,7 @@ void VPNListView::AddProvidersAndNetworks(
const chromeos::NetworkStateHandler::NetworkStateList& networks) {
// Get the list of VPN providers enabled in the primary user's profile.
std::vector<VPNProvider> providers =
- WmShell::Get()->vpn_list()->vpn_providers();
+ Shell::Get()->vpn_list()->vpn_providers();
// Add providers with at least one configured network along with their
// networks. Providers are added in the order of their highest priority
« no previous file with comments | « ash/common/system/chromeos/network/tray_vpn.cc ('k') | ash/common/system/chromeos/screen_security/screen_capture_tray_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698