[Pkg-mozext-commits] [tabmixplus] 05/44: Start using Preferences.jsm

David Prévot taffit at moszumanska.debian.org
Wed Oct 15 02:09:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit e745dce8863f33fe71c4a16c1510177988677fc3
Author: onemen <tabmix.onemen at gmail.com>
Date:   Mon Sep 29 14:59:56 2014 +0300

    Start using Preferences.jsm
---
 modules/Services.jsm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/Services.jsm b/modules/Services.jsm
index 52033c4..0c98a19 100644
--- a/modules/Services.jsm
+++ b/modules/Services.jsm
@@ -218,6 +218,14 @@ XPCOMUtils.defineLazyGetter(TabmixSvc, "australis", function() {
           true : false;
 });
 
+XPCOMUtils.defineLazyGetter(TabmixSvc, "prefs", function() {
+  let svc = isVersion(230) ? "resource://gre/modules/Preferences.jsm" :
+                             "resource://services-common/preferences.js";
+  let tmp = {}
+  Cu.import(svc, tmp);
+  return new tmp.Preferences("");
+});
+
 // Tabmix preference branch
 XPCOMUtils.defineLazyGetter(TabmixSvc, "prefBranch", function () {return Services.prefs.getBranch("extensions.tabmix.")});
 // string bundle

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list