summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/welcome/ntp_background/ntp_background_metrics_proxy.js
blob: dcdb0ffe959cd19095e385782dc4e8ffb03095d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

cr.define('welcome', function() {
  class NtpBackgroundMetricsProxyImpl extends welcome.ModuleMetricsProxyImpl {
    constructor() {
      super(
          'FirstRun.NewUserExperience.NtpBackgroundInteraction',
          welcome.NuxNtpBackgroundInteractions);
    }

    getInteractions() {
      return this.interactions_;
    }
  }

  cr.addSingletonGetter(NtpBackgroundMetricsProxyImpl);

  return {
    NtpBackgroundMetricsProxyImpl: NtpBackgroundMetricsProxyImpl,
  };
});