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

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

Issue 2099443002: Migrate simple ash Shell metrics users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win compile error. Created 4 years, 6 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
« no previous file with comments | « ash/system/chromeos/network/tray_vpn.cc ('k') | ash/system/chromeos/tray_caps_lock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/network/vpn_list_view.cc
diff --git a/ash/system/chromeos/network/vpn_list_view.cc b/ash/system/chromeos/network/vpn_list_view.cc
index 34aacd6a9abe885bd19c7e2a9244f160cd0b256f..1fb751e0156024c6ca594b543a74cb978ee3ca5e 100644
--- a/ash/system/chromeos/network/vpn_list_view.cc
+++ b/ash/system/chromeos/network/vpn_list_view.cc
@@ -13,8 +13,6 @@
#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_popup_label_button.h"
#include "ash/common/wm_shell.h"
-#include "ash/metrics/user_metrics_recorder.h"
-#include "ash/shell.h"
#include "ash/system/chromeos/network/vpn_delegate.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -150,7 +148,7 @@ void VPNListNetworkEntry::NetworkIconChanged() {
void VPNListNetworkEntry::ButtonPressed(views::Button* sender,
const ui::Event& event) {
- Shell::GetInstance()->metrics()->RecordUserMetricsAction(
+ WmShell::Get()->RecordUserMetricsAction(
UMA_STATUS_AREA_VPN_DISCONNECT_CLICKED);
chromeos::NetworkHandler::Get()
->network_connection_handler()
@@ -345,7 +343,7 @@ void VPNListView::OnViewClicked(views::View* sender) {
// If the user clicks on a provider entry, request that the "add network"
// dialog for this provider be shown.
const VPNProvider::Key& key = provider->second;
- Shell::GetInstance()->metrics()->RecordUserMetricsAction(
+ WmShell::Get()->RecordUserMetricsAction(
key.third_party ? UMA_STATUS_AREA_VPN_ADD_THIRD_PARTY_CLICKED
: UMA_STATUS_AREA_VPN_ADD_BUILT_IN_CLICKED);
WmShell::Get()->system_tray_delegate()->GetVPNDelegate()->ShowAddPage(key);
« no previous file with comments | « ash/system/chromeos/network/tray_vpn.cc ('k') | ash/system/chromeos/tray_caps_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698