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

Unified Diff: ash/multi_profile_uma.h

Issue 25098009: Log UMA metrics for multiprofile actions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wording Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
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..88cbc2322aac3c4d2936bf2c27262b50224aad33
--- /dev/null
+++ b/ash/multi_profile_uma.h
@@ -0,0 +1,46 @@
+// 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:
+ // Keep these enums up to date with tools/metrics/histograms/histograms.xml.
+ enum SwitchActiveUserAction {
+ SWITCH_ACTIVE_USER_BY_TRAY = 0,
+ SWITCH_ACTIVE_USER_BY_ACCELERATOR,
+ NUM_SWITCH_ACTIVE_USER_ACTIONS
+ };
+
+ enum SigninUserAction {
+ SIGNIN_USER_BY_TRAY = 0,
+ SIGNIN_USER_BY_BROWSER_FRAME,
+ NUM_SIGNIN_USER_ACTIONS
+ };
+
+ // Record switching the active user and what UI path was taken.
+ static void RecordSwitchActiveUser(SwitchActiveUserAction action);
+
+ // Record signing in a new user and what UI path was taken.
+ static void RecordSigninUser(SigninUserAction action);
+
+ private:
+ MultiProfileUMA();
+ ~MultiProfileUMA();
+
+ DISALLOW_COPY_AND_ASSIGN(MultiProfileUMA);
oshima 2013/09/28 11:45:19 DISALLOW_IMPLICIT_CONSTRUCTORS
Tim Song 2013/09/30 17:19:39 Done.
+};
+
+} // namespace ash
+
+#endif // ASH_MULTI_PROFILE_UMA_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/multi_profile_uma.cc » ('j') | ash/multi_profile_uma.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698