Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: chrome/browser/metrics/user_metrics.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/metrics/user_metrics.h" 5 #include "chrome/browser/metrics/user_metrics.h"
6 #include "chrome/browser/profile.h" 6 #include "chrome/browser/profiles/profile.h"
7 #include "chrome/common/notification_service.h" 7 #include "chrome/common/notification_service.h"
8 8
9 void UserMetrics::RecordAction(const UserMetricsAction& action, 9 void UserMetrics::RecordAction(const UserMetricsAction& action,
10 Profile* profile) { 10 Profile* profile) {
11 Record(action.str_, profile); 11 Record(action.str_, profile);
12 } 12 }
13 13
14 void UserMetrics::RecordComputedAction(const std::string& action, 14 void UserMetrics::RecordComputedAction(const std::string& action,
15 Profile* profile) { 15 Profile* profile) {
16 Record(action.c_str(), profile); 16 Record(action.c_str(), profile);
(...skipping 12 matching lines...) Expand all
29 } 29 }
30 30
31 void UserMetrics::Record(const char *action) { 31 void UserMetrics::Record(const char *action) {
32 NotificationService::current()->Notify(NotificationType::USER_ACTION, 32 NotificationService::current()->Notify(NotificationType::USER_ACTION,
33 NotificationService::AllSources(), 33 NotificationService::AllSources(),
34 Details<const char*>(&action)); 34 Details<const char*>(&action));
35 } 35 }
36 36
37 37
38 38
OLDNEW
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698