Use Service.jsm in components/AboutGroup.js.

This commit is contained in:
saneyuki_s 2012-09-18 00:46:46 +09:00
parent 2cff8ebc48
commit c1c3faac5f

View File

@ -33,10 +33,8 @@
* *
* ***** END LICENSE BLOCK ******/ * ***** 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/XPCOMUtils.jsm');
Components.utils.import('resource://gre/modules/Services.jsm');
function AboutGroup() function AboutGroup()
{ {
@ -49,7 +47,7 @@ AboutGroup.prototype = {
newChannel : function(aURI) 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) getURIFlags : function(aURI)