Bug 1598223 - Pass an object to ExtensionPreferencesManager.getSettingsAPI instead of split arguments. r=mixedpuppy

Differential Revision: https://phabricator.services.mozilla.com/D54621

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nihanth Subramanya 2019-11-28 16:04:27 +00:00
Родитель 18f3b61881
Коммит e48ad7ccc0
1 изменённых файлов: 5 добавлений и 8 удалений

Просмотреть файл

@ -74,16 +74,13 @@ var preferences = class preferences extends ExtensionAPI {
}).api(), }).api(),
state: Object.assign( state: Object.assign(
ExtensionPreferencesManager.getSettingsAPI( ExtensionPreferencesManager.getSettingsAPI({
context.extension.id, extensionId: context.extension.id,
"dohRollout.state", name: "dohRollout.state",
() => { callback: () => {
throw new Error("Not supported"); throw new Error("Not supported");
}, },
undefined, }),
false,
() => {}
),
{ {
set: details => { set: details => {
return ExtensionPreferencesManager.setSetting( return ExtensionPreferencesManager.setSetting(