Add MetricsRecorder for NTP Home Impressions

Desktop / Chromium - Gregory Chatzinoff [chromium.org] - 13 September 2017 16:47 EDT

Adds a MetricsRecorder in ios/clean for NTP Home Impressions. Also includes a util method to make it easier to unit test MetricsRecorders.

Bug: none Change-Id: Ifa7b1aa7c27835ec6e11df07382c673ab747fab9 Reviewed-on: https://chromium-review.googlesource.com/658040

8aa0c68 Add MetricsRecorder for NTP Home Impressions.
ios/chrome/browser/ui/metrics/BUILD.gn | 11 ++++
ios/chrome/browser/ui/metrics/metrics_test_util.h | 17 +++++
ios/chrome/browser/ui/metrics/metrics_test_util.mm | 31 +++++++++
ios/clean/chrome/browser/DEPS | 1 +
ios/clean/chrome/browser/ui/ntp/BUILD.gn | 14 ++++
ios/clean/chrome/browser/ui/ntp/ntp_coordinator.mm | 12 ++++
.../chrome/browser/ui/ntp/ntp_home_coordinator.mm | 12 ----
.../chrome/browser/ui/ntp/ntp_metrics_recorder.h | 26 ++++++++
.../chrome/browser/ui/ntp/ntp_metrics_recorder.mm | 50 +++++++++++++++
.../ui/ntp/ntp_metrics_recorder_unittest.mm | 74 ++++++++++++++++++++++
10 files changed, 236 insertions(+), 12 deletions(-)

Upstream: git.chromium.org


  • Share