| 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.
|
| + // 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.
|
| + // 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.
|
|
|