From 7c43e7fed19a47bf116f402d19468d359c20d3be Mon Sep 17 00:00:00 2001 From: "skuhne@chromium.org" Date: Fri, 1 Nov 2013 13:35:17 +0000 Subject: 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 --- ash/multi_profile_uma.cc | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'ash/multi_profile_uma.cc') 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 -- cgit v1.1