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

Unified Diff: ash/metrics/user_metrics_recorder.cc

Issue 2946543002: Cros Tablet: Add UMA stats for the user close actions in tablet mode. (Closed)
Patch Set: Address asvitkine@'s comments. Created 3 years, 6 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/metrics/user_metrics_action.h ('k') | ash/wm/overview/window_selector_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/metrics/user_metrics_recorder.cc
diff --git a/ash/metrics/user_metrics_recorder.cc b/ash/metrics/user_metrics_recorder.cc
index f89748be2e0baa58d0f52ee517baec8faae69b1b..83c6e9ac01046219f0200d1666ddc58ebf1811c6 100644
--- a/ash/metrics/user_metrics_recorder.cc
+++ b/ash/metrics/user_metrics_recorder.cc
@@ -521,6 +521,15 @@ void UserMetricsRecorder::RecordUserMetricsAction(UserMetricsAction action) {
case UMA_STATUS_AREA_VPN_SETTINGS_OPENED:
RecordAction(UserMetricsAction("StatusArea_VPN_Settings"));
break;
+ case UMA_TABLET_WINDOW_CLOSE_THROUGH_CONTXT_MENU:
+ RecordAction(UserMetricsAction("Tablet_WindowCloseFromContextMenu"));
+ break;
+ case UMA_TABLET_WINDOW_CLOSE_THROUGH_CAPTION_BUTTON:
+ RecordAction(UserMetricsAction("Tablet_WindowCloseFromCaptionButton"));
+ break;
+ case UMA_TABLET_WINDOW_CLOSE_THROUGH_OVERVIEW_CLOSE_BUTTON:
+ RecordAction(UserMetricsAction("Tablet_WindowCloseFromOverviewButton"));
+ break;
case UMA_TOGGLE_MAXIMIZE_CAPTION_CLICK:
RecordAction(UserMetricsAction("Caption_ClickTogglesMaximize"));
break;
« no previous file with comments | « ash/metrics/user_metrics_action.h ('k') | ash/wm/overview/window_selector_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698