Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: ash/multi_profile_uma.cc

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/multi_profile_uma.h ('k') | ash/mus/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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/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
OLDNEW
« no previous file with comments | « ash/multi_profile_uma.h ('k') | ash/mus/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698