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

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

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge 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 c1c1c6e7fa384fcddbd46a1a0069458646c42ea7..942f233e686c2c62b4e03dc399483bb9ae68c57f 100644
--- a/ash/common/system/chromeos/network/vpn_list_view.cc
+++ b/ash/common/system/chromeos/network/vpn_list_view.cc
@@ -24,6 +24,7 @@
#include "ash/common/system/tray/tri_view.h"
#include "ash/common/wm_shell.h"
#include "ash/resources/vector_icons/vector_icons.h"
+#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -359,11 +360,12 @@ void VPNListView::OnViewClicked(views::View* sender) {
if (provider.third_party) {
shell->RecordUserMetricsAction(
UMA_STATUS_AREA_VPN_ADD_THIRD_PARTY_CLICKED);
- shell->system_tray_controller()->ShowThirdPartyVpnCreate(
+ Shell::Get()->system_tray_controller()->ShowThirdPartyVpnCreate(
provider.extension_id);
} else {
shell->RecordUserMetricsAction(UMA_STATUS_AREA_VPN_ADD_BUILT_IN_CLICKED);
- shell->system_tray_controller()->ShowNetworkCreate(shill::kTypeVPN);
+ Shell::Get()->system_tray_controller()->ShowNetworkCreate(
+ shill::kTypeVPN);
}
return;
}

Powered by Google App Engine
This is Rietveld 408576698