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