diff --git a/app/src/main/java/org/mozilla/fenix/components/metrics/Event.kt b/app/src/main/java/org/mozilla/fenix/components/metrics/Event.kt index b70936a4d154..e69d6cc6f434 100644 --- a/app/src/main/java/org/mozilla/fenix/components/metrics/Event.kt +++ b/app/src/main/java/org/mozilla/fenix/components/metrics/Event.kt @@ -126,8 +126,6 @@ sealed class Event { object TabSettingsOpened : Event() - object CopyUrlUsed : Event() - object SyncedTabOpened : Event() object RecentlyClosedTabsOpenedOld : Event() diff --git a/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt b/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt index 21bea6ac14f1..c3f61e8fca1f 100644 --- a/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt +++ b/app/src/main/java/org/mozilla/fenix/components/metrics/GleanMetricsService.kt @@ -367,9 +367,6 @@ private val Event.wrapper: EventWrapper<*>? is Event.ProgressiveWebAppInstallAsShortcut -> EventWrapper( { ProgressiveWebApp.installTap.record(it) } ) - is Event.CopyUrlUsed -> EventWrapper( - { Events.copyUrlTapped.record(it) } - ) is Event.SyncedTabOpened -> EventWrapper( { Events.syncedTabOpened.record(it) } diff --git a/app/src/main/java/org/mozilla/fenix/utils/ToolbarPopupWindow.kt b/app/src/main/java/org/mozilla/fenix/utils/ToolbarPopupWindow.kt index a6bf67bc15b4..6d1ead820fce 100644 --- a/app/src/main/java/org/mozilla/fenix/utils/ToolbarPopupWindow.kt +++ b/app/src/main/java/org/mozilla/fenix/utils/ToolbarPopupWindow.kt @@ -18,11 +18,12 @@ import mozilla.components.browser.state.selector.selectedTab import mozilla.components.browser.state.store.BrowserStore import org.mozilla.fenix.R import org.mozilla.fenix.components.FenixSnackbar -import org.mozilla.fenix.components.metrics.Event import org.mozilla.fenix.ext.components import java.lang.ref.WeakReference import mozilla.components.browser.state.selector.findCustomTab +import mozilla.components.service.glean.private.NoExtras import mozilla.components.support.base.log.logger.Logger +import org.mozilla.fenix.GleanMetrics.Events import org.mozilla.fenix.databinding.BrowserToolbarPopupWindowBinding object ToolbarPopupWindow { @@ -77,7 +78,7 @@ object ToolbarPopupWindow { .setText(context.getString(R.string.browser_toolbar_url_copied_to_clipboard_snackbar)) .show() } - context.components.analytics.metrics.track(Event.CopyUrlUsed) + Events.copyUrlTapped.record(NoExtras()) } }