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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.mm

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/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.mm
index bac5b5faab13f82ed079aacc04debad4c2ce2f59..22868be0969a2be26be55360556969ba958385ec 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.mm
@@ -5,6 +5,7 @@
#import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_cocoa_controller.h"
#import "base/mac/foundation_util.h"
+#include "base/metrics/user_metrics.h"
#include "base/strings/sys_string_conversions.h"
#include "chrome/app/chrome_command_ids.h" // IDC_BOOKMARK_MENU
#import "chrome/browser/app_controller_mac.h"
@@ -16,7 +17,6 @@
#import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.h"
#import "chrome/browser/ui/cocoa/l10n_util.h"
#include "components/bookmarks/browser/bookmark_utils.h"
-#include "content/public/browser/user_metrics.h"
#import "ui/base/cocoa/cocoa_base_utils.h"
#import "ui/base/cocoa/menu_controller.h"
@@ -123,12 +123,11 @@ const NSUInteger kMaximumMenuPixelsWide = 300;
chrome::OpenAll(NULL, browser, node, disposition, browser->profile());
if (disposition == WindowOpenDisposition::NEW_FOREGROUND_TAB) {
- content::RecordAction(UserMetricsAction("OpenAllBookmarks"));
+ base::RecordAction(UserMetricsAction("OpenAllBookmarks"));
} else if (disposition == WindowOpenDisposition::NEW_WINDOW) {
- content::RecordAction(UserMetricsAction("OpenAllBookmarksNewWindow"));
+ base::RecordAction(UserMetricsAction("OpenAllBookmarksNewWindow"));
} else {
- content::RecordAction(
- UserMetricsAction("OpenAllBookmarksIncognitoWindow"));
+ base::RecordAction(UserMetricsAction("OpenAllBookmarksIncognitoWindow"));
}
}
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm ('k') | chrome/browser/ui/cocoa/browser_window_command_handler.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698