Chromium Code Reviews| Index: ash/multi_profile_uma.h |
| diff --git a/ash/multi_profile_uma.h b/ash/multi_profile_uma.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..49f3c1a4bdf5d84d18a07de4c324dd841345f877 |
| --- /dev/null |
| +++ b/ash/multi_profile_uma.h |
| @@ -0,0 +1,32 @@ |
| +// 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/basictypes.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: |
| + static void RecordSwitchUserFromTray(); |
| + static void RecordSwitchUserFromAccelerator(); |
| + static void RecordSigninUserFromTray(); |
| + static void RecordSigninUserFromBrowserFrame(); |
|
Ilya Sherman
2013/09/28 00:29:35
nit: Please document these methods.
Tim Song
2013/09/28 01:35:13
Done.
|
| + |
| + private: |
| + MultiProfileUMA(); |
| + ~MultiProfileUMA(); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(MultiProfileUMA); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_MULTI_PROFILE_UMA_H_ |