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

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: rebase. 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..4d7fdc683ba54eb11cb4c8c5d1bbd840e0fbd956 100644
--- a/chrome/browser/profiles/profile_metrics.h
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -118,6 +118,32 @@ class ProfileMetrics {
NUM_PROFILE_DESKTOP_MENU_METRICS,
};
+#if defined(OS_ANDROID)
+ // TODO(aruslan): http://crbug.com/379987 Move to a generator.
+ // Enum for tracking user interactions with the account management menu
+ // on Android.
+ // This should match its counterpart in AccountManagementScreenHelper.java.
+ enum ProfileAndroidAccountManagementMenu {
+ // User arrived at the Account management screen.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_VIEW = 0,
+ // User arrived at the Account management screen, and clicked Add account.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_ADD_ACCOUNT,
+ // User arrived at the Account management screen, and clicked Go incognito.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_GO_INCOGNITO,
+ // User arrived at the Account management screen, and clicked on primary.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_CLICK_PRIMARY_ACCOUNT,
+ // User arrived at the Account management screen, and clicked on secondary.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_CLICK_SECONDARY_ACCOUNT,
+ // User arrived at the Account management screen, toggled Chrome signout.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_TOGGLE_SIGNOUT,
+ // User toggled Chrome signout, and clicked Signout.
+ PROFILE_ANDROID_ACCOUNT_MANAGEMENT_MENU_SIGNOUT_SIGNOUT,
+ // User toggled Chrome signout, and clicked 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 +159,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);
« no previous file with comments | « chrome/browser/android/signin/account_management_screen_helper.cc ('k') | chrome/browser/profiles/profile_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698