mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 15:51:33 +00:00
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:
parent
528b2c828d
commit
0e065aac1e
@ -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();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user