Fix UKM Incognito observation on Android

Desktop / Chromium - Steven Holte [google.com] - 12 July 2017 21:40 EDT

This makes UKM able to be enabled on Android when no Incognito windows are open.

BUG=739971

Change-Id: I310d540d59594bc3377adf9eedb8c05502c5f5bb Reviewed-on: https://chromium-review.googlesource.com/566241 Commit-Queue: Steven Holte

1afaeb7 Fix UKM Incognito observation on Android.
chrome/android/java_sources.gni | 1 +
.../chrome/browser/metrics/UkmIncognitoTest.java | 48 ++++++++++++++++++++++
.../metrics/chrome_metrics_service_client.cc | 29 ++++++++++++-
.../metrics/chrome_metrics_service_client.h | 11 +++++
.../chrome_metrics_services_manager_client.cc | 23 ++++++++---
chrome/browser/ui/BUILD.gn | 1 +
.../browser/ui/android/tab_model/tab_model_list.cc | 19 +++++++++
.../browser/ui/android/tab_model/tab_model_list.h | 11 +++++
.../ui/android/tab_model/tab_model_list_observer.h | 20 +++++++++
components/metrics/metrics_service_client.h | 1 -
components/ukm/debug_page/debug_page.cc | 3 +-
11 files changed, 159 insertions(+), 8 deletions(-)

Upstream: git.chromium.org


  • Share