2
0
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:
mcarare 2020-11-24 18:44:56 +02:00 committed by Mihai Adrian Carare
parent d404bd76d2
commit de2d1d9fd9
3 changed files with 7 additions and 0 deletions

View File

@ -187,6 +187,8 @@ sealed class Event {
object TabSettingsOpened : Event()
object RecentlyClosedTabsOpened : Event()
// Interaction events with extras
data class TopSiteSwipeCarousel(val page: Int) : Event() {

View File

@ -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) }
)

View File

@ -250,6 +250,7 @@ class DefaultTabTrayController(
override fun handleRecentlyClosedClicked() {
val directions = TabTrayDialogFragmentDirections.actionGlobalRecentlyClosed()
navController.navigate(directions)
metrics.track(Event.RecentlyClosedTabsOpened)
}
override fun handleGoToTabsSettingClicked() {