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

Unified Diff: chrome/browser/ui/uma_browsing_activity_observer.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/ui/uma_browsing_activity_observer.cc
diff --git a/chrome/browser/ui/uma_browsing_activity_observer.cc b/chrome/browser/ui/uma_browsing_activity_observer.cc
index 9e89efee83c87b151afddf8914276f39155117cf..a84c9f6c782861e5ff24a7a594a3364643e55f27 100644
--- a/chrome/browser/ui/uma_browsing_activity_observer.cc
+++ b/chrome/browser/ui/uma_browsing_activity_observer.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/uma_browsing_activity_observer.h"
#include "base/metrics/histogram_macros.h"
+#include "base/metrics/user_metrics.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/browser.h"
@@ -18,7 +19,6 @@
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_process_host.h"
-#include "content/public/browser/user_metrics.h"
namespace chrome {
namespace {
@@ -57,7 +57,7 @@ void UMABrowsingActivityObserver::Observe(
content::Source<content::NavigationController>(source).ptr();
// Track whether the page loaded is a search results page (SRP). Track
// the non-SRP navigations as well so there is a control.
- content::RecordAction(base::UserMetricsAction("NavEntryCommitted"));
+ base::RecordAction(base::UserMetricsAction("NavEntryCommitted"));
// Attempting to determine the cause of a crash originating from
// IsSearchResultsPageFromDefaultSearchProvider but manifesting in
// TemplateURLRef::ExtractSearchTermsFromURL(...).
@@ -67,7 +67,7 @@ void UMABrowsingActivityObserver::Observe(
Profile::FromBrowserContext(controller->GetBrowserContext()))->
IsSearchResultsPageFromDefaultSearchProvider(
load.entry->GetURL())) {
- content::RecordAction(base::UserMetricsAction("NavEntryCommitted.SRP"));
+ base::RecordAction(base::UserMetricsAction("NavEntryCommitted.SRP"));
}
if (!load.is_navigation_to_different_page())
« no previous file with comments | « chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698