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

Unified Diff: chrome/browser/android/metrics/uma_session_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
« no previous file with comments | « chrome/browser/android/metrics/launch_metrics.cc ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/metrics/uma_session_stats.cc
diff --git a/chrome/browser/android/metrics/uma_session_stats.cc b/chrome/browser/android/metrics/uma_session_stats.cc
index 7e18f8a1449e18168de074cca724564d88a153e0..5d07ef31d8c83de8689463d8e092815b8fae1c80 100644
--- a/chrome/browser/android/metrics/uma_session_stats.cc
+++ b/chrome/browser/android/metrics/uma_session_stats.cc
@@ -8,6 +8,7 @@
#include "base/android/jni_string.h"
#include "base/command_line.h"
#include "base/metrics/histogram_macros.h"
+#include "base/metrics/user_metrics.h"
#include "base/strings/string_number_conversions.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/time/time.h"
@@ -24,7 +25,6 @@
#include "components/variations/metrics_util.h"
#include "components/variations/variations_associated_data.h"
#include "content/public/browser/browser_thread.h"
-#include "content/public/browser/user_metrics.h"
#include "jni/UmaSessionStats_jni.h"
using base::android::ConvertJavaStringToUTF8;
@@ -223,15 +223,14 @@ static void RecordPageLoaded(JNIEnv*,
const JavaParamRef<jclass>&,
jboolean is_desktop_user_agent) {
// Should be called whenever a page has been loaded.
- content::RecordAction(UserMetricsAction("MobilePageLoaded"));
+ base::RecordAction(UserMetricsAction("MobilePageLoaded"));
if (is_desktop_user_agent) {
- content::RecordAction(
- UserMetricsAction("MobilePageLoadedDesktopUserAgent"));
+ base::RecordAction(UserMetricsAction("MobilePageLoadedDesktopUserAgent"));
}
}
static void RecordPageLoadedWithKeyboard(JNIEnv*, const JavaParamRef<jclass>&) {
- content::RecordAction(UserMetricsAction("MobilePageLoadedWithKeyboard"));
+ base::RecordAction(UserMetricsAction("MobilePageLoadedWithKeyboard"));
}
static jlong Init(JNIEnv* env, const JavaParamRef<jclass>& obj) {
« no previous file with comments | « chrome/browser/android/metrics/launch_metrics.cc ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698