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

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

Issue 304983005: [Android][Mirror] UMA stats for Account management screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/profiles/profile_metrics.h
diff --git a/chrome/browser/profiles/profile_metrics.h b/chrome/browser/profiles/profile_metrics.h
index 12f8b1a58d739ddf6c715564ae916c012390db36..adc84be36d5f1f44fa19bce56fb4f416b1d08190 100644
--- a/chrome/browser/profiles/profile_metrics.h
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -118,6 +118,31 @@ class ProfileMetrics {
NUM_PROFILE_DESKTOP_MENU_METRICS,
};
+#if defined(OS_ANDROID)
+ // Enum for tracking user interactions with the account management menu
+ // on Android.
+ // This should match its counterpart in AccountManagementScreenHelper.java.
+ enum ProfileAndroidAccountManagementMenu {
+ // User arrived to the Account management screen.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_VIEW = 0,
+ // User arrived to the Account management screen, and clicked Add account.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_ADD_ACCOUNT,
+ // User arrived to the Account management screen, and clicked Go incognito.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_GO_INCOGNITO,
+ // User arrived to the Account management screen, and clicked on primary.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_CLICK_PRIMARY_ACCOUNT,
+ // User arrived to the Account management screen, and clicked on secondary.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_CLICK_SECONDARY_ACCOUNT,
+ // User arrived to the Account management screen, toggled Chrome signout.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_TOGGLE_SIGNOUT,
+ // User toggled Chrome signout, and clicks Signout.
noms (inactive) 2014/06/03 00:52:10 super tiny nit: the other comments use "clicked",
aruslan 2014/06/03 01:05:25 Done, thanks :)
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_SIGNOUT_SIGNOUT,
+ // User toggled Chrome signout, and clicks Cancel.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_SIGNOUT_CANCEL,
+ NUM_PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_METRICS,
+ };
+#endif // defined(OS_ANDROID)
+
static void UpdateReportedProfilesStatistics(ProfileManager* manager);
static void LogNumberOfProfiles(ProfileManager* manager);
@@ -133,6 +158,12 @@ class ProfileMetrics {
static void LogProfileDesktopMenu(ProfileDesktopMenu metric,
signin::GAIAServiceType gaia_service);
+#if defined(OS_ANDROID)
+ static void LogProfileAndroidAccountManagementMenu(
+ ProfileAndroidAccountManagementMenu metric,
+ signin::GAIAServiceType gaia_service);
+#endif // defined(OS_ANDROID)
+
// These functions should only be called on the UI thread because they hook
// into g_browser_process through a helper function.
static void LogProfileLaunch(Profile* profile);

Powered by Google App Engine
This is Rietveld 408576698