forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmulti_profile_uma.h
44 lines (34 loc) · 1.26 KB
/
multi_profile_uma.h
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
// 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.
#ifndef ASH_MULTI_PROFILE_UMA_H_
#define ASH_MULTI_PROFILE_UMA_H_
#include "ash/ash_export.h"
#include "base/macros.h"
namespace ash {
// Records UMA statistics for multiprofile actions.
// Note: There is also an action to switch profile windows from the
// browser frame that is recorded by the "Profile.OpenMethod" metric.
class ASH_EXPORT MultiProfileUMA {
public:
// Used for UMA metrics. Do not reorder.
enum SigninUserAction {
SIGNIN_USER_BY_TRAY = 0,
SIGNIN_USER_BY_BROWSER_FRAME, // Deprecated.
NUM_SIGNIN_USER_ACTIONS
};
// Used for UMA metrics. Do not reorder.
enum SwitchActiveUserAction {
SWITCH_ACTIVE_USER_BY_TRAY = 0,
SWITCH_ACTIVE_USER_BY_ACCELERATOR,
NUM_SWITCH_ACTIVE_USER_ACTIONS
};
// Record signing in a new user and what UI path was taken.
static void RecordSigninUser(SigninUserAction action);
// Record switching the active user and what UI path was taken.
static void RecordSwitchActiveUser(SwitchActiveUserAction action);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(MultiProfileUMA);
};
} // namespace ash
#endif // ASH_MULTI_PROFILE_UMA_H_