[fenix] For https://github.com/mozilla-mobile/fenix/issues/26224 - Use the mr2022.sectionsEnabled.tcp-cfr Nimbus feature to display the cfr

pull/600/head
Mugurell 2 years ago committed by mergify[bot]
parent d6967d5ef7
commit 8a60292015

@ -569,17 +569,17 @@ class Settings(private val appContext: Context) : PreferencesHolder {
)
val enabledTotalCookieProtection: Boolean
get() = FxNimbus.features.engineSettings.value().totalCookieProtectionEnabled
get() = mr2022Sections[Mr2022Section.TCP_FEATURE] == true
val enabledTotalCookieProtectionSetting: Boolean
get() = mr2022Sections[Mr2022Section.TCP_CFR] == true
get() = mr2022Sections[Mr2022Section.TCP_FEATURE] == true
/**
* Indicates if the total cookie protection CRF should be shown.
*/
var shouldShowTotalCookieProtectionCFR by booleanPreference(
appContext.getPreferenceKey(R.string.pref_key_should_show_total_cookie_protection_popup),
default = FxNimbus.features.engineSettings.value().totalCookieProtectionEnabled
default = mr2022Sections[Mr2022Section.TCP_CFR] == true,
)
val blockCookiesSelectionInCustomTrackingProtection by stringPreference(

Loading…
Cancel
Save