summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/welcome/google_apps/google_apps_metrics_proxy.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/welcome/google_apps/google_apps_metrics_proxy.js')
-rw-r--r--chromium/chrome/browser/resources/welcome/google_apps/google_apps_metrics_proxy.js23
1 files changed, 10 insertions, 13 deletions
diff --git a/chromium/chrome/browser/resources/welcome/google_apps/google_apps_metrics_proxy.js b/chromium/chrome/browser/resources/welcome/google_apps/google_apps_metrics_proxy.js
index 77886462fcd..529d4d63222 100644
--- a/chromium/chrome/browser/resources/welcome/google_apps/google_apps_metrics_proxy.js
+++ b/chromium/chrome/browser/resources/welcome/google_apps/google_apps_metrics_proxy.js
@@ -2,18 +2,15 @@
// 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 GoogleAppsMetricsProxyImpl extends welcome.ModuleMetricsProxyImpl {
- constructor() {
- super(
- 'FirstRun.NewUserExperience.GoogleAppsInteraction',
- welcome.NuxGoogleAppsInteractions);
- }
- }
+import {addSingletonGetter} from 'chrome://resources/js/cr.m.js';
+import {ModuleMetricsProxyImpl, NuxGoogleAppsInteractions} from '../shared/module_metrics_proxy.js';
- cr.addSingletonGetter(GoogleAppsMetricsProxyImpl);
+export class GoogleAppsMetricsProxyImpl extends ModuleMetricsProxyImpl {
+ constructor() {
+ super(
+ 'FirstRun.NewUserExperience.GoogleAppsInteraction',
+ NuxGoogleAppsInteractions);
+ }
+}
- return {
- GoogleAppsMetricsProxyImpl: GoogleAppsMetricsProxyImpl,
- };
-});
+addSingletonGetter(GoogleAppsMetricsProxyImpl);