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

Unified Diff: chrome/browser/profiles/profile_metrics.h

Issue 288493008: UMA Metrics for the user menu, including vasquette-detection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit - make a member variable const Created 6 years, 7 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: chrome/browser/profiles/profile_metrics.h
diff --git a/chrome/browser/profiles/profile_metrics.h b/chrome/browser/profiles/profile_metrics.h
index 174c203c239affe270a5e0092e43b6a61ca85ab5..38bb0648a7782f8d01fa53bc4272667ae1ec1394 100644
--- a/chrome/browser/profiles/profile_metrics.h
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -96,6 +96,37 @@ class ProfileMetrics {
NUM_PROFILE_ENROLLMENT_METRICS,
};
+ // Enum for tracking user interactions with the user menu and user manager,
+ // including tracking if the vasquette was the start for user interaction.
Alexei Svitkine (slow) 2014/05/14 14:15:22 What's a vasquette? It doesn't seem to be a real w
Mike Lerman 2014/05/14 19:46:15 I had thought Vasquette was a Google-wide term. Ap
+ // Note: The n items before |FIRST_VASQUETTE_SIGNOUT_ENUM| should parallel
+ // the n items between |FIRST_VASQUETTE_SIGNOUT_ENUM| and
+ // |NUM_PROFILE_DESKTOP_SIGNOUT_METRICS| to indicate whether the particular
+ // user action was initiated from the vasquette or the avatar button.
+ enum ProfileDesktopSignout {
+ // User opened the user menu directly, and clicked lock.
+ PROFILE_DESKTOP_MENU_LOCK,
+ // User opened the user menu directly, and switched profiles.
+ PROFILE_DESKTOP_MENU_SWITCH,
+ // User opened the user menu directly, and started removing an account.
+ PROFILE_DESKTOP_MENU_REMOVE_ACCT,
+ // User opened the user menu directly, and started adding an account.
+ PROFILE_DESKTOP_MENU_ADD_ACCT,
+ // |FIRST_VASQUETTE_SIGNOUT_ENUM| should always be the midpoint enum.
Alexei Svitkine (slow) 2014/05/14 14:15:22 How are you going to keep this condition true when
Mike Lerman 2014/05/14 19:46:15 I'll take a different approach to ordering these.
+ // This bucket of the histogram should always be empty.
+ FIRST_VASQUETTE_SIGNOUT_ENUM,
+ // User clicked on vasquette, went to the user menu, and clicked lock.
+ PROFILE_DESKTOP_VASQUETTE_MENU_LOCK,
+ // User clicked on vasquette, went to the user menu, and switched profiles.
+ PROFILE_DESKTOP_VASQUETTE_MENU_SWITCH,
+ // User clicked on vasquette, went to the user menu, and started removing an
+ // account.
+ PROFILE_DESKTOP_VASQUETTE_REMOVE_ACCT,
+ // User clicked on vasquette, went to the user menu, and started adding an
+ // account.
+ PROFILE_DESKTOP_VASQUETTE_ADD_ACCT,
+ NUM_PROFILE_DESKTOP_SIGNOUT_METRICS,
+ };
+
static void UpdateReportedProfilesStatistics(ProfileManager* manager);
static void LogNumberOfProfiles(ProfileManager* manager);
@@ -108,6 +139,8 @@ class ProfileMetrics {
static void LogProfileSyncInfo(ProfileSync metric);
static void LogProfileAuthResult(ProfileAuth metric);
static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric);
+ static void LogProfileDesktopSignout(ProfileDesktopSignout metric,
+ bool opened_from_vasquette);
// These functions should only be called on the UI thread because they hook
// into g_browser_process through a helper function.
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_metrics.cc » ('j') | chrome/browser/profiles/profile_metrics.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698