| 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..bf858b8e676f0525d1ad2c4ad155715906c4f7e7 100644
|
| --- a/chrome/browser/android/metrics/uma_session_stats.cc
|
| +++ b/chrome/browser/android/metrics/uma_session_stats.cc
|
| @@ -21,7 +21,7 @@
|
| #include "components/metrics/metrics_service.h"
|
| #include "components/metrics_services_manager/metrics_services_manager.h"
|
| #include "components/prefs/pref_service.h"
|
| -#include "components/ukm/ukm_service.h"
|
| +#include "components/ukm/public/ukm_recorder.h"
|
| #include "components/variations/metrics_util.h"
|
| #include "components/variations/variations_associated_data.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -53,9 +53,9 @@ 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();
|
| - if (ukm_service)
|
| - ukm_service->OnAppEnterForeground();
|
| + ukm::UkmRecorder* ukm_recorder = g_browser_process->ukm_recorder();
|
| + if (ukm_recorder)
|
| + ukm_recorder->OnAppEnterForeground();
|
| }
|
| ++active_session_count_;
|
| }
|
| @@ -77,9 +77,9 @@ 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();
|
| - if (ukm_service)
|
| - ukm_service->OnAppEnterBackground();
|
| + ukm::UkmRecorder* ukm_recorder = g_browser_process->ukm_recorder();
|
| + if (ukm_recorder)
|
| + ukm_recorder->OnAppEnterBackground();
|
| }
|
| }
|
|
|
|
|