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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 12481018: ash: Add metrics for screen lock and shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: report metric before requesting lock Created 7 years, 9 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 | « no previous file | ash/shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 62b33ba7be86fc164ade89b5eb0ae96de3906c55..c046f42d3f8a348247cff0ec471bf66ab1dc6660 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 */);
« no previous file with comments | « no previous file | ash/shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698