Bug 1675375 Part 7: Update expectations in helper_hittest_clippath.html. r=botond
[gecko.git] / services / settings / RemoteSettingsComponents.jsm
bloba2b3141ee13f1d4663975c92bcdbe9aa9d0d403b
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 "use strict";
6 var EXPORTED_SYMBOLS = ["RemoteSettingsTimer"];
8 ChromeUtils.defineModuleGetter(
9   this,
10   "RemoteSettings",
11   "resource://services-settings/remote-settings.js"
14 var RemoteSettingsTimer = function() {};
15 RemoteSettingsTimer.prototype = {
16   QueryInterface: ChromeUtils.generateQI(["nsITimerCallback"]),
17   classID: Components.ID("{5e756573-234a-49ea-bbe4-59ec7a70657d}"),
18   contractID: "@mozilla.org/services/settings;1",
20   // By default, this timer fires once every 24 hours. See the "services.settings.poll_interval" pref.
21   notify(timer) {
22     RemoteSettings.pollChanges({ trigger: "timer" }).catch(e =>
23       Cu.reportError(e)
24     );
25   },