[Pkg-mozext-commits] [tabmixplus] 04/15: Import FileUtils to log.jsm instead of TabmixSvc

David Prévot taffit at moszumanska.debian.org
Wed Mar 18 19:05:18 UTC 2015


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

taffit pushed a commit to branch master
in repository tabmixplus.

commit b4d64bdcdeb08ba2967b7eb874c40d60922b3514
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Mar 4 19:41:39 2015 +0200

    Import FileUtils to log.jsm instead of TabmixSvc
---
 modules/log.jsm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/log.jsm b/modules/log.jsm
index 17e6792..2ebaa10 100644
--- a/modules/log.jsm
+++ b/modules/log.jsm
@@ -5,7 +5,9 @@ var EXPORTED_SYMBOLS = ["console"];
 const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
 
 Cu.import("resource://gre/modules/Services.jsm");
-Cu.import("resource://tabmixplus/Services.jsm");
+Cu.import("resource://gre/modules/XPCOMUtils.jsm");
+XPCOMUtils.defineLazyModuleGetter(this, "FileUtils",
+  "resource://gre/modules/FileUtils.jsm");
 
 let gNextID = 1;
 
@@ -232,7 +234,7 @@ options = {
   // RegExp to remove path/to/profile/extensions from filename
   get _pathRegExp() {
     delete this._pathRegExp;
-    let folder = TabmixSvc.FileUtils.getDir("ProfD", ["extensions"]);
+    let folder = FileUtils.getDir("ProfD", ["extensions"]);
     let path = folder.path.replace("\\", "/", "g") + "/";
     return (this._pathRegExp = new RegExp("jar:|file:///|" + path, "g"));
   },

-- 
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