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::RecordSwitchActiveUser(SwitchActiveUserAction action) { | 12 void MultiProfileUMA::RecordSessionMode(SessionMode action) { |
13 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SwitchActiveUserUIPath", | 13 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SessionMode", |
14 action, | 14 action, |
15 NUM_SWITCH_ACTIVE_USER_ACTIONS); | 15 NUM_SESSION_MODES); |
16 } | 16 } |
17 | 17 |
18 // static | 18 // static |
19 void MultiProfileUMA::RecordSigninUser(SigninUserAction action) { | 19 void MultiProfileUMA::RecordSigninUser(SigninUserAction action) { |
20 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SigninUserUIPath", | 20 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SigninUserUIPath", |
21 action, | 21 action, |
22 NUM_SIGNIN_USER_ACTIONS); | 22 NUM_SIGNIN_USER_ACTIONS); |
23 } | 23 } |
24 | 24 |
| 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 |
| 33 void MultiProfileUMA::RecordTeleportAction(TeleportWindowAction action) { |
| 34 UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindow", |
| 35 action, |
| 36 NUM_TELEPORT_WINDOW_ACTIONS); |
| 37 } |
| 38 |
25 } // namespace ash | 39 } // namespace ash |
OLD | NEW |