From f9995a16aff09edb30ee33d5fbcdc8e6027d7ecb Mon Sep 17 00:00:00 2001 From: Gregory Mierzwinski Date: Wed, 19 Oct 2022 18:47:42 -0400 Subject: [PATCH] [fenix] Bug 1791998 - Disable TCP popup when running performance tests. (https://github.com/mozilla-mobile/fenix/pull/27451) * Disable TCP popup when running performance tests. * Run some perf tests. * Undo testing changes. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- app/src/main/java/org/mozilla/fenix/perf/Performance.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/org/mozilla/fenix/perf/Performance.kt b/app/src/main/java/org/mozilla/fenix/perf/Performance.kt index ad02cc1a03..d286d4ad9e 100644 --- a/app/src/main/java/org/mozilla/fenix/perf/Performance.kt +++ b/app/src/main/java/org/mozilla/fenix/perf/Performance.kt @@ -34,6 +34,7 @@ object Performance { disableOnboarding(context) disableTrackingProtectionPopups(context) disableFirstTimePWAPopup(context) + disableTCPPopup(context) } /** @@ -85,4 +86,11 @@ object Performance { private fun disableFirstTimePWAPopup(context: Context) { context.components.settings.userKnowsAboutPwas = true } + + /** + * Disables the TCP popup. + */ + private fun disableTCPPopup(context: Context) { + context.components.settings.shouldShowTotalCookieProtectionCFR = false + } }