summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics/user_metrics.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/metrics/user_metrics.cc')
-rw-r--r--chrome/browser/metrics/user_metrics.cc19
1 files changed, 13 insertions, 6 deletions
diff --git a/chrome/browser/metrics/user_metrics.cc b/chrome/browser/metrics/user_metrics.cc
index 79b4dee..3bdb544 100644
--- a/chrome/browser/metrics/user_metrics.cc
+++ b/chrome/browser/metrics/user_metrics.cc
@@ -6,14 +6,21 @@
#include "chrome/browser/profile.h"
#include "chrome/common/notification_service.h"
-void UserMetrics::RecordAction(const char* action, Profile* profile) {
- NotificationService::current()->Notify(
- NotificationType::USER_ACTION,
- Source<Profile>(profile),
- Details<const char*>(&action));
+void UserMetrics::RecordAction(const UserMetricsAction& action,
+ Profile* profile) {
+ Record(action.str_, profile);
}
void UserMetrics::RecordComputedAction(const std::string& action,
Profile* profile) {
- RecordAction(action.c_str(), profile);
+ Record(action.c_str(), profile);
}
+
+void UserMetrics::Record(const char *action, Profile *profile) {
+ NotificationService::current()->Notify(NotificationType::USER_ACTION,
+ Source<Profile>(profile),
+ Details<const char*>(&action));
+}
+
+
+