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.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/browser/metrics/user_metrics.cc b/chrome/browser/metrics/user_metrics.cc
new file mode 100644
index 0000000..4049875
--- /dev/null
+++ b/chrome/browser/metrics/user_metrics.cc
@@ -0,0 +1,20 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/metrics/user_metrics.h"
+#include "chrome/browser/profile.h"
+#include "chrome/common/notification_service.h"
+
+void UserMetrics::RecordAction(const wchar_t* action, Profile* profile) {
+ NotificationService::current()->
+ Notify(NOTIFY_USER_ACTION,
+ Source<Profile>(profile),
+ Details<const wchar_t*>(&action));
+}
+
+void UserMetrics::RecordComputedAction(const std::wstring& action,
+ Profile* profile) {
+ RecordAction(action.c_str(), profile);
+}
+