diff options
Diffstat (limited to 'chromium/chrome/browser/resources/welcome/ntp_background/ntp_background_metrics_proxy.js')
-rw-r--r-- | chromium/chrome/browser/resources/welcome/ntp_background/ntp_background_metrics_proxy.js | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/chromium/chrome/browser/resources/welcome/ntp_background/ntp_background_metrics_proxy.js b/chromium/chrome/browser/resources/welcome/ntp_background/ntp_background_metrics_proxy.js index dcdb0ffe959..114e5610e9b 100644 --- a/chromium/chrome/browser/resources/welcome/ntp_background/ntp_background_metrics_proxy.js +++ b/chromium/chrome/browser/resources/welcome/ntp_background/ntp_background_metrics_proxy.js @@ -2,22 +2,19 @@ // 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); - } +import {addSingletonGetter} from 'chrome://resources/js/cr.m.js'; +import {ModuleMetricsProxyImpl, NuxNtpBackgroundInteractions} from '../shared/module_metrics_proxy.js'; - getInteractions() { - return this.interactions_; - } +export class NtpBackgroundMetricsProxyImpl extends ModuleMetricsProxyImpl { + constructor() { + super( + 'FirstRun.NewUserExperience.NtpBackgroundInteraction', + NuxNtpBackgroundInteractions); } - cr.addSingletonGetter(NtpBackgroundMetricsProxyImpl); + getInteractions() { + return this.interactions_; + } +} - return { - NtpBackgroundMetricsProxyImpl: NtpBackgroundMetricsProxyImpl, - }; -}); +addSingletonGetter(NtpBackgroundMetricsProxyImpl); |