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