Bug 795397 - Click-to-play blocklisting: respect the "plugins" permission. r=josh...
[gecko.git] / services / notifications / service.js
blob514b0aacc9fb60f82e9752d8471e9ada3c438d3f
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 file,
3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 const EXPORTED_SYMBOLS = ["Service"];
7 const {classes: Cc, interfaces: Ci, results: Cr, utils: Cu} = Components;
9 Cu.import("resource://services-common/preferences.js");
11 const PREFS_BRANCH = "services.notifications.";
14 function NotificationSvc() {
15   this.ready = false;
16   this.prefs = new Preferences(PREFS_BRANCH);
18 NotificationSvc.prototype = {
20   get serverURL() this.prefs.get("serverURL"),
22   onStartup: function onStartup() {
23     this.ready = true;
24   }
27 let Service = new NotificationSvc();
28 Service.onStartup();