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

Unified Diff: ash/system/date/date_default_view.cc

Issue 2063333002: mash: Move all ash UMA metrics to //ash/common/metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/mus/bridge/wm_shell_mus.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/date/date_default_view.cc
diff --git a/ash/system/date/date_default_view.cc b/ash/system/date/date_default_view.cc
index bf06aba18b195d7804d39060bb8e1cfe73e1b6e0..b60ed65e37f70202ed9e716a1edc78f3d1e335b2 100644
--- a/ash/system/date/date_default_view.cc
+++ b/ash/system/date/date_default_view.cc
@@ -4,12 +4,12 @@
#include "ash/system/date/date_default_view.h"
+#include "ash/common/metrics/user_metrics_action.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/system/tray/special_popup_row.h"
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_popup_header_button.h"
-#include "ash/common/wm/wm_user_metrics_action.h"
#include "ash/common/wm_shell.h"
#include "ash/system/date/date_view.h"
#include "base/i18n/rtl.h"
@@ -129,13 +129,13 @@ void DateDefaultView::ButtonPressed(views::Button* sender,
WmShell* shell = WmShell::Get();
SystemTrayDelegate* tray_delegate = shell->system_tray_delegate();
if (sender == help_button_) {
- shell->RecordUserMetricsAction(wm::WmUserMetricsAction::TRAY_HELP);
+ shell->RecordUserMetricsAction(UMA_TRAY_HELP);
tray_delegate->ShowHelp();
} else if (sender == shutdown_button_) {
- shell->RecordUserMetricsAction(wm::WmUserMetricsAction::TRAY_SHUT_DOWN);
+ shell->RecordUserMetricsAction(UMA_TRAY_SHUT_DOWN);
tray_delegate->RequestShutdown();
} else if (sender == lock_button_) {
- shell->RecordUserMetricsAction(wm::WmUserMetricsAction::TRAY_LOCK_SCREEN);
+ shell->RecordUserMetricsAction(UMA_TRAY_LOCK_SCREEN);
tray_delegate->RequestLockScreen();
} else {
NOTREACHED();
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698