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

Unified Diff: ash/accelerators/exit_warning_handler.cc

Issue 15841006: ash: Add UMA action metrics for Ctrl-Shift-Q (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/accelerators/accelerator_controller.cc ('k') | ash/shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/exit_warning_handler.cc
diff --git a/ash/accelerators/exit_warning_handler.cc b/ash/accelerators/exit_warning_handler.cc
index 07d87afd6e1f6d82d4db69e022f709f4c1a97690..004648e99dc573cdab6dc13cb175c24089b4b67b 100644
--- a/ash/accelerators/exit_warning_handler.cc
+++ b/ash/accelerators/exit_warning_handler.cc
@@ -105,17 +105,20 @@ ExitWarningHandler::~ExitWarningHandler() {
}
void ExitWarningHandler::HandleAccelerator() {
+ ShellDelegate* shell_delegate = Shell::GetInstance()->delegate();
switch (state_) {
case IDLE:
state_ = WAIT_FOR_DOUBLE_PRESS;
Show();
StartTimer();
+ shell_delegate->RecordUserMetricsAction(UMA_ACCEL_EXIT_FIRST_Q);
break;
case WAIT_FOR_DOUBLE_PRESS:
state_ = EXITING;
CancelTimer();
Hide();
- Shell::GetInstance()->delegate()->Exit();
+ shell_delegate->RecordUserMetricsAction(UMA_ACCEL_EXIT_SECOND_Q);
+ shell_delegate->Exit();
break;
case EXITING:
break;
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698