Issue #24733: Setup search for Unified Search experimentation

pull/543/head
Roger Yang 2 years ago committed by mergify[bot]
parent 8fe9c5bdd1
commit bf7b8f97c4

@ -1290,9 +1290,9 @@ class Settings(private val appContext: Context) : PreferencesHolder {
/** /**
* Indicates if the Unified Search feature should be visible. * Indicates if the Unified Search feature should be visible.
*/ */
var showUnifiedSearchFeature by featureFlagPreference( var showUnifiedSearchFeature by lazyFeatureFlagPreference(
key = appContext.getPreferenceKey(R.string.pref_key_show_unified_search), key = appContext.getPreferenceKey(R.string.pref_key_show_unified_search),
default = false, default = { homescreenSections[HomeScreenSection.UNIFIED_SEARCH] == true },
featureFlag = FeatureFlags.unifiedSearchFeature featureFlag = FeatureFlags.unifiedSearchFeature
) )

@ -20,6 +20,7 @@ features:
"recent-explorations": true, "recent-explorations": true,
"pocket": true, "pocket": true,
"contile-top-sites": false, "contile-top-sites": false,
"unified-search": false,
} }
defaults: defaults:
- channel: nightly - channel: nightly
@ -31,6 +32,7 @@ features:
"recent-explorations": true, "recent-explorations": true,
"pocket": true, "pocket": true,
"contile-top-sites": false, "contile-top-sites": false,
"unified-search": false,
} }
} }
nimbus-validation: nimbus-validation:
@ -310,6 +312,8 @@ types:
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: contile-top-sites:
description: The sponsored shortcuts in the homescreen. description: The sponsored shortcuts in the homescreen.
unified-search:
description: The unified search toolbar.
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