summaryrefslogtreecommitdiffstats
path: root/ash/multi_profile_uma.h
diff options
context:
space:
mode:
authorskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 13:35:17 +0000
committerskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 13:35:17 +0000
commit7c43e7fed19a47bf116f402d19468d359c20d3be (patch)
treec9d0817707c4289bc7bbd387f21c969fdf78fe23 /ash/multi_profile_uma.h
parenta19c652e7e6671a6d0b41ce76ab14c38a4a540f1 (diff)
downloadchromium_src-7c43e7fed19a47bf116f402d19468d359c20d3be.zip
chromium_src-7c43e7fed19a47bf116f402d19468d359c20d3be.tar.gz
chromium_src-7c43e7fed19a47bf116f402d19468d359c20d3be.tar.bz2
Adding UMA statistics for multi profile
We are capturing: - The used multi profile mode - Window teleports (and their type of transfer) BUG=311828 TEST=visual using chrome://histograms page Review URL: https://codereview.chromium.org/52713008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/multi_profile_uma.h')
-rw-r--r--ash/multi_profile_uma.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/ash/multi_profile_uma.h b/ash/multi_profile_uma.h
index ead66e8..1c70482 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);
};