Index: chrome/browser/profiles/profile_metrics.h |
diff --git a/chrome/browser/profiles/profile_metrics.h b/chrome/browser/profiles/profile_metrics.h |
index 99ec02f48e18deb967f03a20d3e358fd3635eea7..91a09746e1772d927dbd7bb2e6ae85896cd8e0dc 100644 |
--- a/chrome/browser/profiles/profile_metrics.h |
+++ b/chrome/browser/profiles/profile_metrics.h |
@@ -143,6 +143,46 @@ class ProfileMetrics { |
}; |
#endif // defined(OS_ANDROID) |
+ // Enum for tracking user interactions with the 'Not You?' bubble that users |
+ // can navigate to from the Upgrade bubble after upgrade. |
+ enum ProfileNewAvatarMenuNotYou { |
+ // User views the 'Not You?' bubble. |
+ PROFILE_AVATAR_MENU_NOT_YOU_VIEW = 0, |
+ // User selects back from within the 'Not You?' bubble. |
+ PROFILE_AVATAR_MENU_NOT_YOU_BACK, |
+ // User adds a person from within the 'Not You?' bubble. |
+ PROFILE_AVATAR_MENU_NOT_YOU_ADD_PERSON, |
+ // User chooses to disconnect (sign out) from within the 'Not You?' bubble. |
+ PROFILE_AVATAR_MENU_NOT_YOU_DISCONNECT, |
+ NUM_PROFILE_AVATAR_MENU_NOT_YOU_METRICS, |
+ }; |
+ |
+ // Enum for tracking user interactions with the signin bubble that appears |
+ // in the New Avatar Menu after using the Inline Signin flow. |
+ enum ProfileNewAvatarMenuSignin { |
+ // User viewed the signin bubble after successfully using the inline signin. |
+ PROFILE_AVATAR_MENU_SIGNIN_VIEW = 0, |
+ // User selected ok to dismiss the signin bubble. |
+ PROFILE_AVATAR_MENU_SIGNIN_OK, |
+ // User opened the settings from the signin bubble. |
+ PROFILE_AVATAR_MENU_SIGNIN_SETTINGS, |
+ NUM_PROFILE_AVATAR_MENU_SIGNIN_METRICS, |
+ }; |
+ |
+ // Enum for tracking user interactions with the bubble that appears for all |
+ // users in the new avatar menu after upgrading. |
+ enum ProfileNewAvatarMenuUpgrade { |
+ // User views the upgrade bubble. |
+ PROFILE_AVATAR_MENU_UPGRADE_VIEW = 0, |
+ // User dismissed the upgrade bubble. |
+ PROFILE_AVATAR_MENU_UPGRADE_DISMISS, |
+ // User selects 'What's New' in the upgrade bubble. |
+ PROFILE_AVATAR_MENU_UPGRADE_WHATS_NEW, |
+ // User selects 'Not You?' in the upgrade bubble. |
+ PROFILE_AVATAR_MENU_UPGRADE_NOT_YOU, |
+ NUM_PROFILE_AVATAR_MENU_UPGRADE_METRICS, |
+ }; |
+ |
static void UpdateReportedProfilesStatistics(ProfileManager* manager); |
// Count and return summary information about the profiles currently in the |
// |manager|. This information is returned in the output variable |counts|. |
@@ -161,6 +201,10 @@ class ProfileMetrics { |
static void LogProfileDesktopMenu(ProfileDesktopMenu metric, |
signin::GAIAServiceType gaia_service); |
static void LogProfileDelete(bool profile_was_signed_in); |
+ static void LogProfileNewAvatarMenuNotYou(ProfileNewAvatarMenuNotYou metric); |
+ static void LogProfileNewAvatarMenuSignin(ProfileNewAvatarMenuSignin metric); |
+ static void LogProfileNewAvatarMenuUpgrade( |
+ ProfileNewAvatarMenuUpgrade metric); |
#if defined(OS_ANDROID) |
static void LogProfileAndroidAccountManagementMenu( |