diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 23:29:59 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 23:29:59 +0000 |
commit | afd1e525b648613762191b3720ca9533eef358a8 (patch) | |
tree | 3082154d5fd8850222b249d062c874f283f93115 /chrome/browser/app_controller_mac.mm | |
parent | c5ac7e1ef43c7087c8e2c08582b9cd0029229686 (diff) | |
download | chromium_src-afd1e525b648613762191b3720ca9533eef358a8.zip chromium_src-afd1e525b648613762191b3720ca9533eef358a8.tar.gz chromium_src-afd1e525b648613762191b3720ca9533eef358a8.tar.bz2 |
Move UserMetrics to content.
Just the class that provides the action logging API which is used all over the place
is being moved. The UserMetrics class uses the notification system to inform the core
of the user metrics system of each event, that core part is not being moved.
Also take care of a TODO to remove the class methods that take a Profile*
as a paramter (since Profile is verbotten in /content).
BUG=78499
Review URL: http://codereview.chromium.org/6883021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83251 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r-- | chrome/browser/app_controller_mac.mm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm index 7e81d1c..5311133 100644 --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm @@ -19,7 +19,6 @@ #include "chrome/browser/command_updater.h" #include "chrome/browser/download/download_manager.h" #include "chrome/browser/instant/instant_confirm_dialog.h" -#include "chrome/browser/metrics/user_metrics.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/printing/print_job_manager.h" #include "chrome/browser/profiles/profile_manager.h" @@ -50,6 +49,7 @@ #include "chrome/common/url_constants.h" #include "content/browser/browser_thread.h" #include "content/browser/tab_contents/tab_contents.h" +#include "content/browser/user_metrics.h" #include "content/common/notification_service.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" @@ -791,8 +791,7 @@ void RecordLastRunAppBundlePath() { break; } case IDC_SHOW_BOOKMARK_MANAGER: - UserMetrics::RecordAction(UserMetricsAction("ShowBookmarkManager"), - defaultProfile); + UserMetrics::RecordAction(UserMetricsAction("ShowBookmarkManager")); if (Browser* browser = ActivateBrowser(defaultProfile)) { // Open a bookmark manager tab. browser->OpenBookmarkManager(); @@ -853,8 +852,7 @@ void RecordLastRunAppBundlePath() { ProfileSyncService::START_FROM_WRENCH); break; case IDC_TASK_MANAGER: - UserMetrics::RecordAction(UserMetricsAction("TaskManager"), - defaultProfile); + UserMetrics::RecordAction(UserMetricsAction("TaskManager")); TaskManagerMac::Show(false); break; case IDC_OPTIONS: |