Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
For #24715: Remove obsolete addon installed metric.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarare authored and mergify[bot] committed Apr 12, 2022
1 parent b0c5148 commit 3c8e539
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ import org.mozilla.fenix.BuildConfig
import org.mozilla.fenix.Config
import org.mozilla.fenix.R
import org.mozilla.fenix.components.FenixSnackbar
import org.mozilla.fenix.components.metrics.Event
import org.mozilla.fenix.databinding.FragmentAddOnsManagementBinding
import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.getRootView
import org.mozilla.fenix.ext.requireComponents
import org.mozilla.fenix.ext.settings
import org.mozilla.fenix.ext.showToolbar
import org.mozilla.fenix.ext.runIfFragmentIsAttached
Expand Down Expand Up @@ -231,7 +229,6 @@ class AddonsManagementFragment : Fragment(R.layout.fragment_add_ons_management)

private fun showInstallationDialog(addon: Addon) {
if (!isInstallationInProgress && !hasExistingAddonInstallationDialogFragment()) {
requireComponents.analytics.metrics.track(Event.AddonInstalled(addon.id))
val context = requireContext()
val addonCollectionProvider = context.components.addonCollectionProvider

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ sealed class Event {
}
}

data class AddonInstalled(val addonId: String) : Event()

object AutoPlaySettingVisited : Event()

data class AutoPlaySettingChanged(val setting: AutoplaySetting) : Event() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ private val Event.wrapper: EventWrapper<*>?
is Event.InteractWithSearchURLArea -> null
is Event.ClearedPrivateData -> null
is Event.DismissedOnboarding -> null
is Event.AddonInstalled -> null
is Event.SearchWidgetInstalled -> null
}

Expand Down

0 comments on commit 3c8e539

Please sign in to comment.