diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-14 21:08:17 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-14 21:08:17 +0000 |
commit | 2ccf20bdda6c42bc621ac55f204916d2f67c2332 (patch) | |
tree | 95b0a01e535694d89334ef20cc3ac41e60b3f3b4 /ash/accelerators | |
parent | 26c0e6ab780b929477ccb995e36c462c465e1523 (diff) | |
download | chromium_src-2ccf20bdda6c42bc621ac55f204916d2f67c2332.zip chromium_src-2ccf20bdda6c42bc621ac55f204916d2f67c2332.tar.gz chromium_src-2ccf20bdda6c42bc621ac55f204916d2f67c2332.tar.bz2 |
ash: Add metrics for screen lock and shutdown.
This adds user action metrics for locking the screen and
shutting down via keyboard accelerators or the system tray:
Accel_LockScreen_L
Accel_LockScreen_LockButton
Accel_LockScreen_PowerButton
Accel_ShutDown_PowerButton
Tray_LockScreen
Tray_ShutDown
(I'm also throwing in Tray_Help so the help button won't
feel lonely.)
BUG=181808
Review URL: https://chromiumcodereview.appspot.com/12481018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/accelerators')
-rw-r--r-- | ash/accelerators/accelerator_controller.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc index c3a84fe..8194d90 100644 --- a/ash/accelerators/accelerator_controller.cc +++ b/ash/accelerators/accelerator_controller.cc @@ -468,6 +468,8 @@ bool AcceleratorController::PerformAction(int action, Shell::GetInstance()->display_controller()->CycleDisplayMode(); return true; case LOCK_SCREEN: + if (key_code == ui::VKEY_L) + shell->delegate()->RecordUserMetricsAction(UMA_ACCEL_LOCK_SCREEN_L); return HandleLock(); case OPEN_FILE_DIALOG: return HandleFileManager(true /* as_dialog */); |