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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.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 | « ash/wm/session_state_controller_impl2.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index 7ccda1ba698f1dddbfeffd1663bde86ca65ef398..495ada189fff32382905d4a3c96f295d4485520d 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -215,6 +215,18 @@ void ChromeShellDelegate::RecordUserMetricsAction(
content::RecordAction(
content::UserMetricsAction("Accel_KeyboardBrightnessUp_F7"));
break;
+ case ash::UMA_ACCEL_LOCK_SCREEN_L:
+ content::RecordAction(
+ content::UserMetricsAction("Accel_LockScreen_L"));
+ break;
+ case ash::UMA_ACCEL_LOCK_SCREEN_LOCK_BUTTON:
+ content::RecordAction(
+ content::UserMetricsAction("Accel_LockScreen_LockButton"));
+ break;
+ case ash::UMA_ACCEL_LOCK_SCREEN_POWER_BUTTON:
+ content::RecordAction(
+ content::UserMetricsAction("Accel_LockScreen_PowerButton"));
+ break;
case ash::UMA_ACCEL_MAXIMIZE_RESTORE_F4:
content::RecordAction(
content::UserMetricsAction("Accel_Maximize_Restore_F4"));
@@ -237,6 +249,10 @@ void ChromeShellDelegate::RecordUserMetricsAction(
case ash::UMA_ACCEL_SEARCH_LWIN:
content::RecordAction(content::UserMetricsAction("Accel_Search_LWin"));
break;
+ case ash::UMA_ACCEL_SHUT_DOWN_POWER_BUTTON:
+ content::RecordAction(
+ content::UserMetricsAction("Accel_ShutDown_PowerButton"));
+ break;
case ash::UMA_MAXIMIZE_BUTTON_MAXIMIZE:
content::RecordAction(content::UserMetricsAction("MaxButton_Maximize"));
break;
@@ -276,6 +292,15 @@ void ChromeShellDelegate::RecordUserMetricsAction(
case ash::UMA_TOUCHSCREEN_TAP_DOWN:
content::RecordAction(content::UserMetricsAction("Touchscreen_Down"));
break;
+ case ash::UMA_TRAY_HELP:
+ content::RecordAction(content::UserMetricsAction("Tray_Help"));
+ break;
+ case ash::UMA_TRAY_LOCK_SCREEN:
+ content::RecordAction(content::UserMetricsAction("Tray_LockScreen"));
+ break;
+ case ash::UMA_TRAY_SHUT_DOWN:
+ content::RecordAction(content::UserMetricsAction("Tray_ShutDown"));
+ break;
}
}
« no previous file with comments | « ash/wm/session_state_controller_impl2.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698