Skip to content

Commit

Permalink
Bug 1876596 - Add probe for debug drawer secret setting
Browse files Browse the repository at this point in the history
  • Loading branch information
MozillaNoah authored and mergify[bot] committed Jan 30, 2024
1 parent 8832039 commit cd5f8f2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions fenix/app/metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11353,3 +11353,19 @@ fx_suggest:
expires: never
send_in_pings:
- fx-suggest
debug_drawer:
debug_drawer_enabled:
type: boolean
description: |
Whether or not the user has enabled the Debug Drawer feature.
send_in_pings:
- metrics
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1876596
data_reviews:
- https://github.com/mozilla-mobile/firefox-android/pull/5356
data_sensitivity:
- interaction
notification_emails:
- android-probes@mozilla.com
expires: never
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.nav
import org.mozilla.fenix.ext.settings
import org.mozilla.fenix.ext.showToolbar
import org.mozilla.fenix.GleanMetrics.DebugDrawer as DebugDrawerMetrics

class SecretSettingsFragment : PreferenceFragmentCompat() {

Expand Down Expand Up @@ -114,6 +115,7 @@ class SecretSettingsFragment : PreferenceFragmentCompat() {
onPreferenceChangeListener =
Preference.OnPreferenceChangeListener { _, newValue ->
debugSettingsRepository.setDebugDrawerEnabled(enabled = newValue as Boolean)
DebugDrawerMetrics.debugDrawerEnabled.set(newValue)
true
}
}
Expand Down

0 comments on commit cd5f8f2

Please sign in to comment.