diff --git a/app/metrics.yaml b/app/metrics.yaml index 6aea90fe1..11582ce2c 100644 --- a/app/metrics.yaml +++ b/app/metrics.yaml @@ -3366,24 +3366,6 @@ logins: - android-probes@mozilla.com expires: "2022-02-01" -search_suggestions: - enable_in_private: - type: event - description: | - A user enabled receiving search suggestions in private sessions - bugs: - - https://github.com/mozilla-mobile/fenix/issues/6070 - data_reviews: - - https://github.com/mozilla-mobile/fenix/pull/6746 - - https://github.com/mozilla-mobile/fenix/pull/15713#issuecomment-703972068 - - https://github.com/mozilla-mobile/fenix/pull/19924#issuecomment-861423789 - data_sensitivity: - - technical - - interaction - notification_emails: - - android-probes@mozilla.com - expires: "2021-08-01" - voice_search: tapped: type: event 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 080dd63fa..029e41d02 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 @@ -124,7 +124,6 @@ sealed class Event { object EditLogin : Event() object EditLoginSave : Event() object ViewLoginPassword : Event() - object PrivateBrowsingShowSearchSuggestions : Event() object WhatsNewTapped : Event() object PocketTopSiteClicked : Event() object PocketTopSiteRemoved : 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 9b8b603f3..970ccbc18 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 @@ -41,7 +41,6 @@ import org.mozilla.fenix.GleanMetrics.ReaderMode import org.mozilla.fenix.GleanMetrics.RecentBookmarks import org.mozilla.fenix.GleanMetrics.RecentTabs import org.mozilla.fenix.GleanMetrics.SearchShortcuts -import org.mozilla.fenix.GleanMetrics.SearchSuggestions import org.mozilla.fenix.GleanMetrics.SearchWidget import org.mozilla.fenix.GleanMetrics.SetDefaultNewtabExperiment import org.mozilla.fenix.GleanMetrics.SetDefaultSettingExperiment @@ -443,9 +442,6 @@ private val Event.wrapper: EventWrapper<*>? is Event.EditLoginSave -> EventWrapper( { Logins.saveEditedLogin.record(it) } ) - is Event.PrivateBrowsingShowSearchSuggestions -> EventWrapper( - { SearchSuggestions.enableInPrivate.record(it) } - ) is Event.ToolbarPositionChanged -> EventWrapper( { ToolbarSettings.changedPosition.record(it) }, { ToolbarSettings.changedPositionKeys.valueOf(it) } diff --git a/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt b/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt index 3acf7c6ec..3169efc7a 100644 --- a/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt @@ -318,7 +318,6 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler { } store.dispatch(SearchFragmentAction.SetShowSearchSuggestions(true)) store.dispatch(SearchFragmentAction.AllowSearchSuggestionsInPrivateModePrompt(false)) - requireComponents.analytics.metrics.track(Event.PrivateBrowsingShowSearchSuggestions) } searchSuggestionHintBinding.dismiss.setOnClickListener {