multi_profile_uma.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef ASH_MULTI_PROFILE_UMA_H_
  5. #define ASH_MULTI_PROFILE_UMA_H_
  6. #include "ash/ash_export.h"
  7. namespace ash {
  8. // Records UMA statistics for multiprofile actions.
  9. // Note: There is also an action to switch profile windows from the
  10. // browser frame that is recorded by the "Profile.OpenMethod" metric.
  11. class ASH_EXPORT MultiProfileUMA {
  12. public:
  13. // Used for UMA metrics. Do not reorder.
  14. enum SwitchActiveUserAction {
  15. SWITCH_ACTIVE_USER_BY_TRAY = 0,
  16. SWITCH_ACTIVE_USER_BY_ACCELERATOR,
  17. NUM_SWITCH_ACTIVE_USER_ACTIONS
  18. };
  19. MultiProfileUMA() = delete;
  20. MultiProfileUMA(const MultiProfileUMA&) = delete;
  21. MultiProfileUMA& operator=(const MultiProfileUMA&) = delete;
  22. // Record switching the active user and what UI path was taken.
  23. static void RecordSwitchActiveUser(SwitchActiveUserAction action);
  24. };
  25. } // namespace ash
  26. #endif // ASH_MULTI_PROFILE_UMA_H_