summaryrefslogtreecommitdiffstats
path: root/chrome/browser/user_metrics.cc
blob: 43dd88a9ab797a6384d1d118395f6994c33bae38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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/profile.h"
#include "chrome/browser/user_metrics.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);
}