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

Unified Diff: chrome/browser/bookmarks/bookmark_stats.cc

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 9 months 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/bookmarks/bookmark_stats.cc
diff --git a/chrome/browser/bookmarks/bookmark_stats.cc b/chrome/browser/bookmarks/bookmark_stats.cc
index 91c8845b767be670d0e7be3c592a52e774ee3c3d..0fe3c1bc86190827fb08821028705560ae26ce55 100644
--- a/chrome/browser/bookmarks/bookmark_stats.cc
+++ b/chrome/browser/bookmarks/bookmark_stats.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/bookmarks/bookmark_stats.h"
#include "base/metrics/histogram_macros.h"
+#include "base/metrics/user_metrics.h"
#include "components/bookmarks/browser/bookmark_model.h"
-#include "content/public/browser/user_metrics.h"
using bookmarks::BookmarkNode;
@@ -14,8 +14,7 @@ void RecordBookmarkLaunch(const BookmarkNode* node,
BookmarkLaunchLocation location) {
if (location == BOOKMARK_LAUNCH_LOCATION_DETACHED_BAR ||
location == BOOKMARK_LAUNCH_LOCATION_ATTACHED_BAR) {
- content::RecordAction(
- base::UserMetricsAction("ClickedBookmarkBarURLButton"));
+ base::RecordAction(base::UserMetricsAction("ClickedBookmarkBarURLButton"));
}
UMA_HISTOGRAM_ENUMERATION(
"Bookmarks.LaunchLocation", location, BOOKMARK_LAUNCH_LOCATION_LIMIT);
@@ -37,15 +36,14 @@ void RecordBookmarkLaunch(const BookmarkNode* node,
void RecordBookmarkFolderOpen(BookmarkLaunchLocation location) {
if (location == BOOKMARK_LAUNCH_LOCATION_DETACHED_BAR ||
location == BOOKMARK_LAUNCH_LOCATION_ATTACHED_BAR) {
- content::RecordAction(
- base::UserMetricsAction("ClickedBookmarkBarFolder"));
+ base::RecordAction(base::UserMetricsAction("ClickedBookmarkBarFolder"));
}
}
void RecordBookmarkAppsPageOpen(BookmarkLaunchLocation location) {
if (location == BOOKMARK_LAUNCH_LOCATION_DETACHED_BAR ||
location == BOOKMARK_LAUNCH_LOCATION_ATTACHED_BAR) {
- content::RecordAction(
+ base::RecordAction(
base::UserMetricsAction("ClickedBookmarkBarAppsShortcutButton"));
}
}
« no previous file with comments | « chrome/browser/background/background_mode_manager.cc ('k') | chrome/browser/bookmarks/chrome_bookmark_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698