Bug 1791998 - Disable TCP popup when running performance tests. (#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>
This commit is contained in:
Gregory Mierzwinski 2022-10-19 18:47:42 -04:00 committed by GitHub
parent fe25aa8e14
commit 5e60cea503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

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