[email protected] | 3779587 | 2013-10-02 19:41:43 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "ash/multi_profile_uma.h" |
| 6 | |
| 7 | #include "base/metrics/histogram.h" |
| 8 | |
| 9 | namespace ash { |
| 10 | |
| 11 | // static |
[email protected] | 7c43e7fe | 2013-11-01 13:35:17 | [diff] [blame] | 12 | void MultiProfileUMA::RecordSessionMode(SessionMode action) { |
| 13 | UMA_HISTOGRAM_ENUMERATION("MultiProfile.SessionMode", |
[email protected] | 3779587 | 2013-10-02 19:41:43 | [diff] [blame] | 14 | action, |
[email protected] | 7c43e7fe | 2013-11-01 13:35:17 | [diff] [blame] | 15 | NUM_SESSION_MODES); |
[email protected] | 3779587 | 2013-10-02 19:41:43 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | // static |
| 19 | void MultiProfileUMA::RecordSigninUser(SigninUserAction action) { |
| 20 | UMA_HISTOGRAM_ENUMERATION("MultiProfile.SigninUserUIPath", |
| 21 | action, |
| 22 | NUM_SIGNIN_USER_ACTIONS); |
| 23 | } |
| 24 | |
[email protected] | 7c43e7fe | 2013-11-01 13:35:17 | [diff] [blame] | 25 | // static |
| 26 | void MultiProfileUMA::RecordSwitchActiveUser(SwitchActiveUserAction action) { |
| 27 | UMA_HISTOGRAM_ENUMERATION("MultiProfile.SwitchActiveUserUIPath", |
| 28 | action, |
| 29 | NUM_SWITCH_ACTIVE_USER_ACTIONS); |
| 30 | } |
| 31 | |
| 32 | // static |
[email protected] | ae690fe | 2013-12-04 18:56:15 | [diff] [blame] | 33 | void MultiProfileUMA::RecordTeleportWindowType(TeleportWindowType window_type) { |
| 34 | UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindowType", |
| 35 | window_type, |
| 36 | NUM_TELEPORT_WINDOW_TYPES); |
| 37 | } |
| 38 | |
| 39 | // static |
[email protected] | 7c43e7fe | 2013-11-01 13:35:17 | [diff] [blame] | 40 | void MultiProfileUMA::RecordTeleportAction(TeleportWindowAction action) { |
| 41 | UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindow", |
| 42 | action, |
| 43 | NUM_TELEPORT_WINDOW_ACTIONS); |
| 44 | } |
| 45 | |
[email protected] | b47fae3 | 2013-12-04 04:23:31 | [diff] [blame] | 46 | // static |
| 47 | void MultiProfileUMA::RecordUserCount(int number_of_users) { |
[email protected] | a4afc43bd | 2014-03-09 18:00:05 | [diff] [blame] | 48 | UMA_HISTOGRAM_COUNTS_100("MultiProfile.UsersPerSessionIncremental", |
| 49 | number_of_users); |
[email protected] | b47fae3 | 2013-12-04 04:23:31 | [diff] [blame] | 50 | } |
| 51 | |
[email protected] | 8cf815be | 2013-12-05 20:08:15 | [diff] [blame] | 52 | // static |
| 53 | void MultiProfileUMA::RecordDiscardedTab(int number_of_users) { |
| 54 | UMA_HISTOGRAM_COUNTS_100("MultiProfile.DiscardedTabsPerUser", |
| 55 | number_of_users); |
| 56 | } |
| 57 | |
[email protected] | 3779587 | 2013-10-02 19:41:43 | [diff] [blame] | 58 | } // namespace ash |