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 #ifndef ASH_MULTI_PROFILE_UMA_H_ |
| 6 #define ASH_MULTI_PROFILE_UMA_H_ |
| 7 |
| 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" |
| 10 |
| 11 namespace ash { |
| 12 |
| 13 // Records UMA statistics for multiprofile actions. |
| 14 // Note: There is also an action to switch profile windows from the |
| 15 // browser frame that is recorded by the "Profile.OpenMethod" metric. |
| 16 class ASH_EXPORT MultiProfileUMA { |
| 17 public: |
| 18 // Keep these enums up to date with tools/metrics/histograms/histograms.xml. |
| 19 enum SwitchActiveUserAction { |
| 20 SWITCH_ACTIVE_USER_BY_TRAY = 0, |
| 21 SWITCH_ACTIVE_USER_BY_ACCELERATOR, |
| 22 NUM_SWITCH_ACTIVE_USER_ACTIONS |
| 23 }; |
| 24 |
| 25 enum SigninUserAction { |
| 26 SIGNIN_USER_BY_TRAY = 0, |
| 27 SIGNIN_USER_BY_BROWSER_FRAME, |
| 28 NUM_SIGNIN_USER_ACTIONS |
| 29 }; |
| 30 |
| 31 // Record switching the active user and what UI path was taken. |
| 32 static void RecordSwitchActiveUser(SwitchActiveUserAction action); |
| 33 |
| 34 // Record signing in a new user and what UI path was taken. |
| 35 static void RecordSigninUser(SigninUserAction action); |
| 36 |
| 37 private: |
| 38 DISALLOW_IMPLICIT_CONSTRUCTORS(MultiProfileUMA); |
| 39 }; |
| 40 |
| 41 } // namespace ash |
| 42 |
| 43 #endif // ASH_MULTI_PROFILE_UMA_H_ |
OLD | NEW |