mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-02 03:40:16 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/15366: Add recently closed tabs metrics.
This commit is contained in:
parent
d404bd76d2
commit
de2d1d9fd9
@ -187,6 +187,8 @@ sealed class Event {
|
||||
|
||||
object TabSettingsOpened : Event()
|
||||
|
||||
object RecentlyClosedTabsOpened : Event()
|
||||
|
||||
// Interaction events with extras
|
||||
|
||||
data class TopSiteSwipeCarousel(val page: Int) : Event() {
|
||||
|
@ -674,6 +674,10 @@ private val Event.wrapper: EventWrapper<*>?
|
||||
{ ProgressiveWebApp.backgroundKeys.valueOf(it) }
|
||||
)
|
||||
|
||||
is Event.RecentlyClosedTabsOpened -> EventWrapper<NoExtraKeys>(
|
||||
{ Events.recentlyClosedTabsOpened.record(it) }
|
||||
)
|
||||
|
||||
Event.MasterPasswordMigrationDisplayed -> EventWrapper<NoExtraKeys>(
|
||||
{ MasterPassword.displayed.record(it) }
|
||||
)
|
||||
|
@ -250,6 +250,7 @@ class DefaultTabTrayController(
|
||||
override fun handleRecentlyClosedClicked() {
|
||||
val directions = TabTrayDialogFragmentDirections.actionGlobalRecentlyClosed()
|
||||
navController.navigate(directions)
|
||||
metrics.track(Event.RecentlyClosedTabsOpened)
|
||||
}
|
||||
|
||||
override fun handleGoToTabsSettingClicked() {
|
||||
|
Loading…
Reference in New Issue
Block a user