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

Unified Diff: chrome/browser/background/background_mode_manager.cc

Issue 8919017: Split UserMetrics into API vs. implementation. Move API to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to content namespace. Update usages. Update extract_actions tool. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/background/background_mode_manager.cc
diff --git a/chrome/browser/background/background_mode_manager.cc b/chrome/browser/background/background_mode_manager.cc
index e6fa317f59aecf3c99de1df2332265ed13ce90e7..3493da16f5fde3b0c6148989b1b2567cb0b6de6e 100644
--- a/chrome/browser/background/background_mode_manager.cc
+++ b/chrome/browser/background/background_mode_manager.cc
@@ -26,15 +26,17 @@
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/pref_names.h"
-#include "content/browser/user_metrics.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_types.h"
+#include "content/public/browser/user_metrics.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
+using content::UserMetricsAction;
+
BackgroundModeManager::BackgroundModeData::BackgroundModeData(
int command_id,
Profile* profile)
@@ -467,7 +469,7 @@ void BackgroundModeManager::ExecuteCommand(int command_id) {
bmd->GetBrowserWindow()->OpenTaskManager(true);
break;
case IDC_EXIT:
- UserMetrics::RecordAction(UserMetricsAction("Exit"));
+ content::RecordAction(UserMetricsAction("Exit"));
BrowserList::AttemptExit(false);
break;
case IDC_STATUS_TRAY_KEEP_CHROME_RUNNING_IN_BACKGROUND: {

Powered by Google App Engine
This is Rietveld 408576698