| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |