diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 01:29:22 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 01:29:22 +0000 |
commit | cd1adc2666bdba7d27a2eac2dbf8b70fb7f3c36e (patch) | |
tree | ed83f1798c522ad4db2a810b458e282835748f0a /chrome/browser/metrics/user_metrics.cc | |
parent | 946e05246a5e2a3cd3f9510dd8fd0f6eb84f7d69 (diff) | |
download | chromium_src-cd1adc2666bdba7d27a2eac2dbf8b70fb7f3c36e.zip chromium_src-cd1adc2666bdba7d27a2eac2dbf8b70fb7f3c36e.tar.gz chromium_src-cd1adc2666bdba7d27a2eac2dbf8b70fb7f3c36e.tar.bz2 |
Move metrics files into a subdir
Review URL: http://codereview.chromium.org/18302
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics/user_metrics.cc')
-rw-r--r-- | chrome/browser/metrics/user_metrics.cc | 20 |
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); +} + |