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

Unified Diff: ash/multi_profile_uma.h

Issue 52713008: Adding UMA statistics for multi profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/multi_profile_uma.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/multi_profile_uma.h
diff --git a/ash/multi_profile_uma.h b/ash/multi_profile_uma.h
index ead66e8061b30710fcecb1df959b269653587201..1c70482b67f89a75d8f197b0d5674c30612d71a1 100644
--- a/ash/multi_profile_uma.h
+++ b/ash/multi_profile_uma.h
@@ -16,10 +16,11 @@ namespace ash {
class ASH_EXPORT MultiProfileUMA {
public:
// Keep these enums up to date with tools/metrics/histograms/histograms.xml.
- enum SwitchActiveUserAction {
- SWITCH_ACTIVE_USER_BY_TRAY = 0,
- SWITCH_ACTIVE_USER_BY_ACCELERATOR,
- NUM_SWITCH_ACTIVE_USER_ACTIONS
+ enum SessionMode {
+ SESSION_SINGLE_USER_MODE = 0,
+ SESSION_SIDE_BY_SIDE_MODE,
+ SESSION_SEPARATE_DESKTOP_MODE,
+ NUM_SESSION_MODES
};
enum SigninUserAction {
@@ -28,12 +29,32 @@ class ASH_EXPORT MultiProfileUMA {
NUM_SIGNIN_USER_ACTIONS
};
- // Record switching the active user and what UI path was taken.
- static void RecordSwitchActiveUser(SwitchActiveUserAction action);
+ enum SwitchActiveUserAction {
+ SWITCH_ACTIVE_USER_BY_TRAY = 0,
+ SWITCH_ACTIVE_USER_BY_ACCELERATOR,
+ NUM_SWITCH_ACTIVE_USER_ACTIONS
+ };
+
+ enum TeleportWindowAction {
+ TELEPORT_WINDOW_DRAG_AND_DROP = 0,
+ TELEPORT_WINDOW_CAPTION_MENU,
+ TELEPORT_WINDOW_RETURN_BY_MINIMIZE,
+ TELEPORT_WINDOW_RETURN_BY_LAUNCHER,
+ NUM_TELEPORT_WINDOW_ACTIONS
+ };
+
+ // Record the type of user (multi profile) session.
+ static void RecordSessionMode(SessionMode mode);
// Record signing in a new user and what UI path was taken.
static void RecordSigninUser(SigninUserAction action);
+ // Record switching the active user and what UI path was taken.
+ static void RecordSwitchActiveUser(SwitchActiveUserAction action);
+
+ // Record the way and how many times a window got teleported to another desk.
+ static void RecordTeleportAction(TeleportWindowAction action);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(MultiProfileUMA);
};
« no previous file with comments | « no previous file | ash/multi_profile_uma.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698