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

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

Issue 470643002: Add metrics to the new ProfileChooser Tutorials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename histograms Created 6 years, 4 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 99ec02f48e18deb967f03a20d3e358fd3635eea7..30fcc678506479fc72be9ff09cd94b3133981cb0 100644
--- a/chrome/browser/profiles/profile_metrics.h
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -143,6 +143,47 @@ class ProfileMetrics {
};
#endif // defined(OS_ANDROID)
+ // Enum for tracking user interactions with the signin bubble that appears
+ // in the New Avatar Menu upon signin. This bubble appears after the user
+ // signs in using the Inline Signin flow.
+ enum ProfileDesktopSignin {
+ // User viewed the signin bubble after successfully using the inline signin.
+ PROFILE_DESKTOP_SIGNIN_VIEW = 0,
+ // User selected ok to dismiss the signin bubble.
+ PROFILE_DESKTOP_SIGNIN_OK,
+ // User opened the settings from the signin bubble.
+ PROFILE_DESKTOP_SIGNIN_SETTINGS,
+ NUM_PROFILE_DESKTOP_SIGNIN_METRICS,
+ };
+
+ // Enum for tracking user interactions with the bubble that appears for signed
+ // in users in the new avatar menu on the first run.
guohui 2014/08/14 18:03:06 The upgrade flow is not for users who signed in th
Mike Lerman 2014/08/14 18:15:30 Done.
+ enum ProfileNewAvatarMenuFRE {
+ // User views the upgrade bubble.
+ PROFILE_AVATAR_MENU_UPGRADE_VIEW,
+ // 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,
+ };
+
+ // Enum for tracking user interactions with the Not You? bubble that users
+ // can navigate to from the Upgrade bubble during the first run.
guohui 2014/08/14 18:03:06 same here, has nothing to do with first run.
Mike Lerman 2014/08/14 18:15:30 Done.
+ enum ProfileNewAvatarMenuNotYou {
+ // User views the Not You? bubble.
+ PROFILE_AVATAR_MENU_NOT_YOU_VIEW,
+ // 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,
+ };
+
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 +202,9 @@ class ProfileMetrics {
static void LogProfileDesktopMenu(ProfileDesktopMenu metric,
signin::GAIAServiceType gaia_service);
static void LogProfileDelete(bool profile_was_signed_in);
+ static void LogProfileDesktopSignin(ProfileDesktopSignin metric);
+ static void LogProfileNewAvatarMenuFRE(ProfileNewAvatarMenuFRE metric);
+ static void LogProfileNewAvatarMenuNotYou(ProfileNewAvatarMenuNotYou metric);
#if defined(OS_ANDROID)
static void LogProfileAndroidAccountManagementMenu(
« 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