| OLD | NEW |
| (Empty) |
| 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/common/multi_profile_uma.h" | |
| 6 | |
| 7 #include "base/metrics/histogram_macros.h" | |
| 8 | |
| 9 namespace ash { | |
| 10 | |
| 11 // static | |
| 12 void MultiProfileUMA::RecordSessionMode(SessionMode action) { | |
| 13 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SessionMode", action, | |
| 14 NUM_SESSION_MODES); | |
| 15 } | |
| 16 | |
| 17 // static | |
| 18 void MultiProfileUMA::RecordSigninUser(SigninUserAction action) { | |
| 19 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SigninUserUIPath", action, | |
| 20 NUM_SIGNIN_USER_ACTIONS); | |
| 21 } | |
| 22 | |
| 23 // static | |
| 24 void MultiProfileUMA::RecordSwitchActiveUser(SwitchActiveUserAction action) { | |
| 25 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SwitchActiveUserUIPath", action, | |
| 26 NUM_SWITCH_ACTIVE_USER_ACTIONS); | |
| 27 } | |
| 28 | |
| 29 // static | |
| 30 void MultiProfileUMA::RecordTeleportWindowType(TeleportWindowType window_type) { | |
| 31 UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindowType", window_type, | |
| 32 NUM_TELEPORT_WINDOW_TYPES); | |
| 33 } | |
| 34 | |
| 35 // static | |
| 36 void MultiProfileUMA::RecordTeleportAction(TeleportWindowAction action) { | |
| 37 UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindow", action, | |
| 38 NUM_TELEPORT_WINDOW_ACTIONS); | |
| 39 } | |
| 40 | |
| 41 // static | |
| 42 void MultiProfileUMA::RecordUserCount(int number_of_users) { | |
| 43 UMA_HISTOGRAM_COUNTS_100("MultiProfile.UsersPerSessionIncremental", | |
| 44 number_of_users); | |
| 45 } | |
| 46 | |
| 47 // static | |
| 48 void MultiProfileUMA::RecordDiscardedTab(int number_of_users) { | |
| 49 UMA_HISTOGRAM_COUNTS_100("MultiProfile.DiscardedTabsPerUser", | |
| 50 number_of_users); | |
| 51 } | |
| 52 | |
| 53 } // namespace ash | |
| OLD | NEW |