For #23990 - Allow for Nimbus experimentation for Contile top sites

upstream-sync
Gabriel Luong 2 years ago committed by mergify[bot]
parent 094cd63242
commit 65b1716495

@ -1292,9 +1292,9 @@ class Settings(private val appContext: Context) : PreferencesHolder {
/** /**
* Indicates if the Contile functionality should be visible. * Indicates if the Contile functionality should be visible.
*/ */
var showContileFeature by featureFlagPreference( var showContileFeature by lazyFeatureFlagPreference(
key = appContext.getPreferenceKey(R.string.pref_key_enable_contile), key = appContext.getPreferenceKey(R.string.pref_key_enable_contile),
default = false, default = { homescreenSections[HomeScreenSection.CONTILE_TOP_SITES] == true },
featureFlag = FeatureFlags.contileFeature, featureFlag = FeatureFlags.contileFeature,
) )

@ -18,7 +18,8 @@ features:
"jump-back-in": true, "jump-back-in": true,
"recently-saved": true, "recently-saved": true,
"recent-explorations": true, "recent-explorations": true,
"pocket": true "pocket": true,
"contile-top-sites": false,
} }
defaults: defaults:
- channel: nightly - channel: nightly
@ -28,7 +29,8 @@ features:
"jump-back-in": true, "jump-back-in": true,
"recently-saved": true, "recently-saved": true,
"recent-explorations": true, "recent-explorations": true,
"pocket": true "pocket": true,
"contile-top-sites": false,
} }
} }
nimbus-validation: nimbus-validation:
@ -84,6 +86,8 @@ types:
description: The tab groups description: The tab groups
pocket: pocket:
description: The pocket section. This should only be available in the US. description: The pocket section. This should only be available in the US.
contile-top-sites:
description: The sponsored shortcuts in the homescreen.
MessageSurfaceId: MessageSurfaceId:
description: The identity of a message surface, used in the default browser experiments description: The identity of a message surface, used in the default browser experiments
variants: variants:

Loading…
Cancel
Save