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

Unified Diff: chrome/browser/android/metrics/uma_session_stats.cc

Issue 2883563002: Refactor UKM interface for mojo-ification (Closed)
Patch Set: Fix uma_session_stats.cc Created 3 years, 7 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/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 5d07ef31d8c83de8689463d8e092815b8fae1c80..2358ad98f2504876734176b7f5ae052a8b095f14 100644
--- a/chrome/browser/android/metrics/uma_session_stats.cc
+++ b/chrome/browser/android/metrics/uma_session_stats.cc
@@ -53,7 +53,8 @@ void UmaSessionStats::UmaResumeSession(JNIEnv* env,
metrics::MetricsService* metrics = g_browser_process->metrics_service();
if (metrics)
metrics->OnAppEnterForeground();
- ukm::UkmService* ukm_service = g_browser_process->ukm_service();
+ ukm::UkmService* ukm_service =
+ g_browser_process->GetMetricsServicesManager()->GetUkmService();
if (ukm_service)
ukm_service->OnAppEnterForeground();
}
@@ -77,7 +78,8 @@ void UmaSessionStats::UmaEndSession(JNIEnv* env,
metrics::MetricsService* metrics = g_browser_process->metrics_service();
if (metrics)
metrics->OnAppEnterBackground();
- ukm::UkmService* ukm_service = g_browser_process->ukm_service();
+ ukm::UkmService* ukm_service =
+ g_browser_process->GetMetricsServicesManager()->GetUkmService();
if (ukm_service)
ukm_service->OnAppEnterBackground();
}

Powered by Google App Engine
This is Rietveld 408576698