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..b8bba1f3ecf327865e5e334b9c0cc0991f4cd453 100644 |
--- a/chrome/browser/profiles/profile_metrics.h |
+++ b/chrome/browser/profiles/profile_metrics.h |
@@ -80,6 +80,21 @@ class ProfileMetrics { |
NUM_PROFILE_AUTH_METRICS |
}; |
+ // Enum for tracking whether Mirror is enabled and Promo views. |
Alexei Svitkine (slow)
2014/04/30 16:45:37
Nit: Mention in comment that this is used in a his
Mike Lerman
2014/04/30 18:11:44
Done.
|
+ enum ProfileEnrollment { |
msw
2014/04/29 23:10:52
nit: should this match the histograms' "ProfileMir
Mike Lerman
2014/04/30 18:11:44
Done.
|
+ // The Mirror Promo was displayed. |
msw
2014/04/29 23:10:52
nit: make these comments more similar with Profile
Mike Lerman
2014/04/30 18:11:44
Done.
|
+ PROFILE_ENROLLMENT_SHOW_PREVIEW_PROMO, |
+ // The Learn More button was clicked. |
+ PROFILE_ENROLLMENT_LAUNCH_LEARN_MORE, |
+ // Mirror was enabled via the Promo. |
+ PROFILE_ENROLLMENT_ACCEPT_MIRROR, |
+ // The Welcome card was dismissed. |
+ PROFILE_ENROLLMENT_CLOSE_WELCOME_CARD, |
+ // Mirror was disabled after having been enabled. |
+ PROFILE_ENROLLMENT_DISABLE_MIRROR, |
msw
2014/04/29 23:10:52
nit: this seems fairly distinct from "Webdata DB e
Mike Lerman
2014/04/30 18:11:44
Sorry, I hadn't updated the histograms.xml.
Done.
|
+ NUM_PROFILE_ENROLLMENT_METRICS, |
+ }; |
+ |
static void UpdateReportedProfilesStatistics(ProfileManager* manager); |
static void LogNumberOfProfiles(ProfileManager* manager); |
@@ -91,6 +106,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. |