tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit fa76b18cd3e1404e487620f3ba0048f282058cb1
parent 15c9867811a9c4438fadec42da600b8d4b72b5e3
Author: Roger Yang <royang@mozilla.com>
Date:   Wed, 10 Dec 2025 14:50:58 +0000

Bug 1957982 - Remove growth data Nimbus feature. r=android-reviewers,petru

Differential Revision: https://phabricator.services.mozilla.com/D273081

Diffstat:
Mmobile/android/fenix/app/nimbus.fml.yaml | 12------------
Mmobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/metrics/MetricsStorage.kt | 7+++----
2 files changed, 3 insertions(+), 16 deletions(-)

diff --git a/mobile/android/fenix/app/nimbus.fml.yaml b/mobile/android/fenix/app/nimbus.fml.yaml @@ -133,18 +133,6 @@ features: } } - growth-data: - description: A feature measuring campaign growth data - variables: - enabled: - description: If true, the feature is active - type: Boolean - default: false - defaults: - - channel: release - value: - enabled: true - re-engagement-notification: description: A feature that shows the re-engagement notification if the user is inactive. variables: diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/metrics/MetricsStorage.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/metrics/MetricsStorage.kt @@ -11,9 +11,9 @@ import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import mozilla.components.support.utils.ext.packageManagerCompatHelper +import org.mozilla.fenix.Config import org.mozilla.fenix.android.DefaultActivityLifecycleCallbacks import org.mozilla.fenix.ext.settings -import org.mozilla.fenix.nimbus.FxNimbus import org.mozilla.fenix.utils.Settings import java.text.SimpleDateFormat import java.util.Calendar @@ -271,11 +271,10 @@ internal class DefaultMetricsStorage( /** * Determines whether events should be tracked based on some general criteria: * - user has installed as a result of a campaign - * - tracking is still enabled through Nimbus + * - this is a release build */ fun shouldSendGenerally(context: Context): Boolean { - return context.settings().adjustCampaignId.isNotEmpty() && - FxNimbus.features.growthData.value().enabled + return context.settings().adjustCampaignId.isNotEmpty() && Config.channel.isRelease } fun getInstalledTime(context: Context): Long = context.packageManagerCompatHelper