summaryrefslogtreecommitdiffstats
path: root/ash/accelerators
diff options
context:
space:
mode:
authorharrym@chromium.org <harrym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 08:10:18 +0000
committerharrym@chromium.org <harrym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-13 08:10:18 +0000
commit5d2ea361990ac129fd0385c4c85efd17917edfc0 (patch)
tree028f0b44d7bda24c341e4bd65e58c2b6b88a1967 /ash/accelerators
parent7f635540943693cca1748e6f7d7345269befac59 (diff)
downloadchromium_src-5d2ea361990ac129fd0385c4c85efd17917edfc0.zip
chromium_src-5d2ea361990ac129fd0385c4c85efd17917edfc0.tar.gz
chromium_src-5d2ea361990ac129fd0385c4c85efd17917edfc0.tar.bz2
Adding UMA metric tracking to the status are menu and related tray views to track usage of the menu's.
BUG=297046 Review URL: https://codereview.chromium.org/73583003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240537 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/accelerators')
-rw-r--r--ash/accelerators/exit_warning_handler.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/ash/accelerators/exit_warning_handler.cc b/ash/accelerators/exit_warning_handler.cc
index 1f8b53e..776068e 100644
--- a/ash/accelerators/exit_warning_handler.cc
+++ b/ash/accelerators/exit_warning_handler.cc
@@ -4,6 +4,7 @@
#include "ash/accelerators/exit_warning_handler.h"
+#include "ash/metrics/user_metrics_recorder.h"
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "ash/shell_window_ids.h"
@@ -126,13 +127,15 @@ void ExitWarningHandler::HandleAccelerator() {
state_ = WAIT_FOR_DOUBLE_PRESS;
Show();
StartTimer();
- shell_delegate->RecordUserMetricsAction(UMA_ACCEL_EXIT_FIRST_Q);
+ Shell::GetInstance()->
+ metrics()->RecordUserMetricsAction(UMA_ACCEL_EXIT_FIRST_Q);
break;
case WAIT_FOR_DOUBLE_PRESS:
state_ = EXITING;
CancelTimer();
Hide();
- shell_delegate->RecordUserMetricsAction(UMA_ACCEL_EXIT_SECOND_Q);
+ Shell::GetInstance()->
+ metrics()->RecordUserMetricsAction(UMA_ACCEL_EXIT_SECOND_Q);
shell_delegate->Exit();
break;
case EXITING: