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

Unified Diff: chrome/browser/first_run/first_run.h

Issue 9969141: Add FirstRun.SearchEngineBubble UMA histogram counts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add and use first_run::LogFirstRunMetric; fix UMA macro. Created 8 years, 9 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/first_run/first_run.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/first_run.h
diff --git a/chrome/browser/first_run/first_run.h b/chrome/browser/first_run/first_run.h
index 29ef02b3484afc5e6b47a6acfd42f651d9541956..be7e8302d21bb06e4cd1115c9d5cd338faa1edfe 100644
--- a/chrome/browser/first_run/first_run.h
+++ b/chrome/browser/first_run/first_run.h
@@ -33,6 +33,12 @@ class ProcessSingleton;
// install work for this user. After that the sentinel file is created.
namespace first_run {
+enum FirstRunBubbleMetric {
+ FIRST_RUN_BUBBLE_SHOWN = 0, // The search engine bubble was shown.
+ FIRST_RUN_BUBBLE_CHANGE_INVOKED, // The bubble's "Change" was invoked.
+ NUM_FIRST_RUN_BUBBLE_METRICS
+};
+
// See ProcessMasterPreferences for more info about this structure.
struct MasterPrefs {
MasterPrefs();
@@ -74,6 +80,9 @@ bool SetShowWelcomePagePref();
// Returns false if the pref could not be set.
bool SetPersonalDataManagerFirstRunPref();
+// Log a metric for the "FirstRun.SearchEngineBubble" histogram.
+void LogFirstRunMetric(FirstRunBubbleMetric metric);
+
// -- Platform-specific functions --
// Automatically import history and home page (and search engine, if
« no previous file with comments | « no previous file | chrome/browser/first_run/first_run.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698