Bug 1851268 - Show Firefox Suggest search suggestions in Fenix.
This commit integrates the Firefox Suggest Android component added in bug 1850296 into Fenix, and adds: * A Nimbus feature for Firefox Suggest. * A secret setting to enable the Firefox Suggest feature, only visible on the debug channel. * Search settings for toggling sponsored and non-sponsored suggestions, only visible when the Firefox Suggest feature is enabled. When the feature is enabled, Fenix will ingest new suggestions in the background, show the new Search settings, and show matching suggestions in the awesomebar depending on those Search settings.fenix/119.0
parent
924a831c94
commit
3ba6593f98
@ -0,0 +1,25 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.components
|
||||
|
||||
import android.content.Context
|
||||
import mozilla.components.feature.fxsuggest.FxSuggestIngestionScheduler
|
||||
import mozilla.components.feature.fxsuggest.FxSuggestStorage
|
||||
import org.mozilla.fenix.perf.lazyMonitored
|
||||
|
||||
/**
|
||||
* Component group for Firefox Suggest.
|
||||
*
|
||||
* @param context The Android application context.
|
||||
*/
|
||||
class FxSuggest(context: Context) {
|
||||
val storage by lazyMonitored {
|
||||
FxSuggestStorage(context)
|
||||
}
|
||||
|
||||
val ingestionScheduler by lazyMonitored {
|
||||
FxSuggestIngestionScheduler(context)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue