Chromium Code Reviews| 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..1df2399cf85f8b20364e0b2b41322ccc7d51e24e 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. |
|
msw
2014/08/14 21:24:48
nit: 'Not You?' (nix "disconnect", "(sign out)", o
Mike Lerman
2014/08/15 12:55:46
I had 3 characters to spare :)
|
| + 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( |