diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 18:14:28 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 18:14:28 +0000 |
commit | 89622004872be7f7ddaa24fa1694f76c7b9539b6 (patch) | |
tree | 81b8a42c7649c8cbca99d04305470ccbc1fe61fa /chrome/browser/options_page_base.h | |
parent | b7544eef7b81458a88597419eed6617c41e6d3dc (diff) | |
download | chromium_src-89622004872be7f7ddaa24fa1694f76c7b9539b6.zip chromium_src-89622004872be7f7ddaa24fa1694f76c7b9539b6.tar.gz chromium_src-89622004872be7f7ddaa24fa1694f76c7b9539b6.tar.bz2 |
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 <fmantek@google.com>.
Review URL: http://codereview.chromium.org/811005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42362 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/options_page_base.h')
-rw-r--r-- | chrome/browser/options_page_base.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |