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

This commit is contained in:
Gabriel Luong 2022-02-25 16:01:36 -05:00 committed by mergify[bot]
parent 094cd63242
commit 65b1716495
2 changed files with 8 additions and 4 deletions

View File

@ -1292,9 +1292,9 @@ class Settings(private val appContext: Context) : PreferencesHolder {
/**
* 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),
default = false,
default = { homescreenSections[HomeScreenSection.CONTILE_TOP_SITES] == true },
featureFlag = FeatureFlags.contileFeature,
)

View File

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