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

Side by Side Diff: ash/multi_profile_uma.cc

Issue 25098009: Log UMA metrics for multiprofile actions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
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.h"
8
9 namespace {
10
11 enum SwitchActiveUserAction {
12 SWITCH_ACTIVE_USER_BY_TRAY = 0,
13 SWITCH_ACTIVE_USER_BY_ACCELERATOR,
14 NUM_SWITCH_ACTIVE_USER_ACTIONS
15 };
16
17 enum SigninUserAction {
18 SIGNIN_USER_BY_TRAY = 0,
19 SIGNIN_USER_BY_BROWSER_FRAME,
20 NUM_SIGNIN_USER_ACTIONS
21 };
22
23 } // namespace
24
25 namespace ash {
26
27 MultiProfileUMA::MultiProfileUMA() {}
28
29 MultiProfileUMA::~MultiProfileUMA() {}
30
31 // static
32 void MultiProfileUMA::RecordSwitchUserFromTray() {
33 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SwitchActiveUser",
34 SWITCH_ACTIVE_USER_BY_TRAY,
35 NUM_SWITCH_ACTIVE_USER_ACTIONS);
36 }
37
38 // static
39 void MultiProfileUMA::RecordSwitchUserFromAccelerator() {
40 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SwitchActiveUser",
41 SWITCH_ACTIVE_USER_BY_ACCELERATOR,
42 NUM_SWITCH_ACTIVE_USER_ACTIONS);
Ilya Sherman 2013/09/28 00:29:35 Of lines 40-42, lines 40 and 42 are identical to t
Tim Song 2013/09/28 01:35:13 Done.
43 }
44
45 // static
46 void MultiProfileUMA::RecordSigninUserFromTray() {
47 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SigninUser",
48 SIGNIN_USER_BY_TRAY,
49 NUM_SIGNIN_USER_ACTIONS);
50 }
51
52 // static
53 void MultiProfileUMA::RecordSigninUserFromBrowserFrame() {
54 UMA_HISTOGRAM_ENUMERATION("MultiProfile.SigninUser",
55 SIGNIN_USER_BY_BROWSER_FRAME,
56 NUM_SIGNIN_USER_ACTIONS);
57 }
58
59 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698