diff options
author | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 13:35:17 +0000 |
---|---|---|
committer | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-01 13:35:17 +0000 |
commit | 7c43e7fed19a47bf116f402d19468d359c20d3be (patch) | |
tree | c9d0817707c4289bc7bbd387f21c969fdf78fe23 /ash/multi_profile_uma.cc | |
parent | a19c652e7e6671a6d0b41ce76ab14c38a4a540f1 (diff) | |
download | chromium_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.cc')
-rw-r--r-- | ash/multi_profile_uma.cc | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/ash/multi_profile_uma.cc b/ash/multi_profile_uma.cc index b6383e4..f6d9840 100644 --- a/ash/multi_profile_uma.cc +++ b/ash/multi_profile_uma.cc @@ -9,10 +9,10 @@ namespace ash { // static -void MultiProfileUMA::RecordSwitchActiveUser(SwitchActiveUserAction action) { - UMA_HISTOGRAM_ENUMERATION("MultiProfile.SwitchActiveUserUIPath", +void MultiProfileUMA::RecordSessionMode(SessionMode action) { + UMA_HISTOGRAM_ENUMERATION("MultiProfile.SessionMode", action, - NUM_SWITCH_ACTIVE_USER_ACTIONS); + NUM_SESSION_MODES); } // static @@ -22,4 +22,18 @@ void MultiProfileUMA::RecordSigninUser(SigninUserAction action) { NUM_SIGNIN_USER_ACTIONS); } +// static +void MultiProfileUMA::RecordSwitchActiveUser(SwitchActiveUserAction action) { + UMA_HISTOGRAM_ENUMERATION("MultiProfile.SwitchActiveUserUIPath", + action, + NUM_SWITCH_ACTIVE_USER_ACTIONS); +} + +// static +void MultiProfileUMA::RecordTeleportAction(TeleportWindowAction action) { + UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindow", + action, + NUM_TELEPORT_WINDOW_ACTIONS); +} + } // namespace ash |