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

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

Issue 227083007: UMA for New Profile Management. Track User-Menu Tutorial actions with Histograms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further clean up condition controlling OptionsView. Created 6 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_metrics.h
diff --git a/chrome/browser/profiles/profile_metrics.h b/chrome/browser/profiles/profile_metrics.h
index f31eb104fd5d157d9bedeec29733def713a15290..174c203c239affe270a5e0092e43b6a61ca85ab5 100644
--- a/chrome/browser/profiles/profile_metrics.h
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -61,8 +61,8 @@ class ProfileMetrics {
};
enum ProfileType {
- ORIGINAL = 0, // Refers to the original/default profile
- SECONDARY, // Refers to a user-created profile
+ ORIGINAL = 0, // Refers to the original/default profile
+ SECONDARY, // Refers to a user-created profile
NUM_PROFILE_TYPE_METRICS
};
@@ -80,6 +80,22 @@ class ProfileMetrics {
NUM_PROFILE_AUTH_METRICS
};
+ // Enum for tracking if new profile management is enabled and Promo views.
+ // This is used in a histogram; the items should not be removed or re-ordered.
+ enum ProfileUpgradeEnrollment {
+ // User viewed the Upgrade promo card in the user menu.
+ PROFILE_ENROLLMENT_SHOW_PREVIEW_PROMO,
+ // User selected to view the intro tutorial.
+ PROFILE_ENROLLMENT_LAUNCH_LEARN_MORE,
+ // User opted into New Profile Management via Promo card.
+ PROFILE_ENROLLMENT_ACCEPT_NEW_PROFILE_MGMT,
+ // User closed the Upgrade card.
+ PROFILE_ENROLLMENT_CLOSE_WELCOME_CARD,
+ // Used disabled New Profile Management.
+ PROFILE_ENROLLMENT_DISABLE_NEW_PROFILE_MGMT,
+ NUM_PROFILE_ENROLLMENT_METRICS,
+ };
+
static void UpdateReportedProfilesStatistics(ProfileManager* manager);
static void LogNumberOfProfiles(ProfileManager* manager);
@@ -91,6 +107,7 @@ class ProfileMetrics {
static void LogProfileSwitchUser(ProfileOpen metric);
static void LogProfileSyncInfo(ProfileSync metric);
static void LogProfileAuthResult(ProfileAuth metric);
+ static void LogProfileUpgradeEnrollment(ProfileUpgradeEnrollment metric);
// These functions should only be called on the UI thread because they hook
// into g_browser_process through a helper function.
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698