From 89622004872be7f7ddaa24fa1694f76c7b9539b6 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Tue, 23 Mar 2010 18:14:28 +0000 Subject: UMA cleanup. Replacing calls to RecordAction(char*) to use a new structure. That way it is easier to keep track of those constants in reporting tools. TEST=Covered with standard ui tests Patch by Frank Mantek . Review URL: http://codereview.chromium.org/811005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42362 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/options_page_base.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome/browser/options_page_base.h') diff --git a/chrome/browser/options_page_base.h b/chrome/browser/options_page_base.h index fee43d0..013a26c 100644 --- a/chrome/browser/options_page_base.h +++ b/chrome/browser/options_page_base.h @@ -10,9 +10,11 @@ #include "base/basictypes.h" #include "chrome/browser/options_window.h" #include "chrome/common/notification_observer.h" +#include "chrome/browser/metrics/user_metrics.h" class PrefService; class Profile; +struct UserMetricsAction; /////////////////////////////////////////////////////////////////////////////// // OptionsPageBase @@ -40,7 +42,8 @@ class OptionsPageBase : public NotificationObserver { Profile* profile() const { return profile_; } // Records a user action and schedules the prefs file to be saved. - void UserMetricsRecordAction(const char* action, PrefService* prefs); + void UserMetricsRecordAction(const UserMetricsAction &action, + PrefService* prefs); // Allows the UI to update when a preference value changes. The parameter is // the specific pref that changed, or NULL if all pref UI should be -- cgit v1.1