From c1c3faac5f3b0c663e6b3650c5bf8d159843f8c0 Mon Sep 17 00:00:00 2001 From: saneyuki_s Date: Tue, 18 Sep 2012 00:46:46 +0900 Subject: [PATCH] Use Service.jsm in components/AboutGroup.js. --- components/AboutGroup.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/AboutGroup.js b/components/AboutGroup.js index a280cfab..f7a97d84 100644 --- a/components/AboutGroup.js +++ b/components/AboutGroup.js @@ -33,10 +33,8 @@ * * ***** END LICENSE BLOCK ******/ -const IOService = Components.classes['@mozilla.org/network/io-service;1'] - .getService(Components.interfaces.nsIIOService); - Components.utils.import('resource://gre/modules/XPCOMUtils.jsm'); +Components.utils.import('resource://gre/modules/Services.jsm'); function AboutGroup() { @@ -49,7 +47,7 @@ AboutGroup.prototype = { newChannel : function(aURI) { - return IOService.newChannel('chrome://treestyletab/content/group.xul', null, null); + return Services.io.newChannel('chrome://treestyletab/content/group.xul', null, null); }, getURIFlags : function(aURI)