Bug 1406475 - Convert ServicesAutomation module to using Services.prefs. r=sync-reviewers,skhamis

Depends on D180807

Differential Revision: https://phabricator.services.mozilla.com/D180808
This commit is contained in:
Marco Castelluccio 2023-06-14 23:15:37 +00:00
parent 528b2c828d
commit 0e065aac1e

View File

@ -292,10 +292,10 @@ export var Sync = {
lazy.Svc.Obs.add("weave:service:setup-complete", this);
lazy.Svc.Obs.add("weave:service:tracking-started", this);
// Delay the automatic sync operations, so we can trigger it manually
lazy.Weave.Svc.Prefs.set("scheduler.immediateInterval", 7200);
lazy.Weave.Svc.Prefs.set("scheduler.idleInterval", 7200);
lazy.Weave.Svc.Prefs.set("scheduler.activeInterval", 7200);
lazy.Weave.Svc.Prefs.set("syncThreshold", 10000000);
lazy.Weave.Svc.PrefBranch.setIntPref("scheduler.immediateInterval", 7200);
lazy.Weave.Svc.PrefBranch.setIntPref("scheduler.idleInterval", 7200);
lazy.Weave.Svc.PrefBranch.setIntPref("scheduler.activeInterval", 7200);
lazy.Weave.Svc.PrefBranch.setIntPref("syncThreshold", 10000000);
// Wipe all the logs
await this.wipeLogs();
},