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

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: Track user-source in the histogram suffix 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_metrics.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9d388f15c3f2b557bf92e91f67d78f5c12e97ad4 100644
--- a/chrome/browser/profiles/profile_metrics.h
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -96,6 +96,21 @@ class ProfileMetrics {
NUM_PROFILE_ENROLLMENT_METRICS,
};
+ // Enum for tracking user interactions with the user menu and user manager.
+ // Interactions initiated from the content area are logged into a different
+ // histogram from those that were initiated from the avatar button.
+ // An example of the interaction beginning in the content area is
+ // clicking "Manage Accounts" within account selection on a Google property.
+ enum ProfileDesktopSignout {
+ // User opened the user menu, and clicked lock.
+ PROFILE_DESKTOP_MENU_LOCK = 0,
+ // User opened the user menu, and started removing an account.
+ PROFILE_DESKTOP_MENU_REMOVE_ACCT,
+ // User opened the user menu, and started adding an account.
+ PROFILE_DESKTOP_MENU_ADD_ACCT,
+ NUM_PROFILE_DESKTOP_SIGNOUT_METRICS,
+ };
+
static void UpdateReportedProfilesStatistics(ProfileManager* manager);
static void LogNumberOfProfiles(ProfileManager* manager);
@@ -108,6 +123,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_content);
// 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') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698