Bug 1858549 - Remove the quickSuggestRemoteSettingsEnabled Nimbus variable and fallback pref. r=daisuke

Depends on D190742

Differential Revision: https://phabricator.services.mozilla.com/D190745
This commit is contained in:
Drew Willcoxon
2023-10-12 15:50:50 +00:00
parent f9f954cc37
commit 57b0f17880
17 changed files with 38 additions and 130 deletions

View File

@@ -150,13 +150,12 @@ class ProviderQuickSuggest extends UrlbarProvider {
let instance = this.queryInstance;
let searchString = this._trimmedSearchString;
// There are two sources for quick suggest: remote settings and Merino.
// There are two sources for quick suggest: the current remote settings
// backend (either JS or Rust) and Merino.
let promises = [];
if (lazy.UrlbarPrefs.get("quickSuggestRemoteSettingsEnabled")) {
let { backend } = lazy.QuickSuggest;
if (backend?.isEnabled) {
promises.push(backend.query(searchString));
}
let { backend } = lazy.QuickSuggest;
if (backend?.isEnabled) {
promises.push(backend.query(searchString));
}
if (
lazy.UrlbarPrefs.get("merinoEnabled") &&