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

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: Rebase 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
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..398732b2f976768ba13916f1f75accb94bc2f45b 100644
--- a/chrome/browser/profiles/profile_metrics.h
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -80,6 +80,16 @@ class ProfileMetrics {
NUM_PROFILE_AUTH_METRICS
};
+ // Enum for tracking whether Mirror is enabled and Promo views.
+ enum ProfileEnrollment {
+ ENROLL_SHOW_PREVIEW_PROMO, // The Mirror Promo was displayed.
+ ENROLL_LAUNCH_LEARN_MORE, // The Learn More button was clicked.
+ ENROLL_ACCEPT_MIRROR, // Mirror was enabled via the Promo.
+ ENROLL_CLOSE_WELCOME_CARD, // The Welcome card was dismissed.
+ MIRROR_DISABLE, // Mirror was disabled after having been enabled.
guohui 2014/04/28 19:26:18 nit: i think the convention is to prefix each enum
Mike Lerman 2014/04/28 20:43:27 Done.
+ NUM_PROFILE_ENROLLMENT_METRICS
+ };
+
static void UpdateReportedProfilesStatistics(ProfileManager* manager);
static void LogNumberOfProfiles(ProfileManager* manager);
@@ -91,6 +101,7 @@ class ProfileMetrics {
static void LogProfileSwitchUser(ProfileOpen metric);
static void LogProfileSyncInfo(ProfileSync metric);
static void LogProfileAuthResult(ProfileAuth metric);
+ static void LogProfileMirrorEnrollment(ProfileEnrollment 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') | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698