Remove TreeStyleTabUtils.IOService.

This commit is contained in:
saneyuki_s 2012-09-18 00:44:51 +09:00
parent 37a21325a9
commit 2cff8ebc48

View File

@ -276,14 +276,6 @@ var TreeStyleTabUtils = {
},
_SessionStore : null,
get IOService() {
if (!this._IOService) {
this._IOService = Services.io;
}
return this._IOService;
},
_IOService : null,
get WindowMediator() {
if (!this._WindowMediator) {
this._WindowMediator = Services.wm;
@ -1141,13 +1133,13 @@ var TreeStyleTabUtils = {
var newURI;
aURI = aURI || '';
if (aURI && String(aURI).indexOf('file:') == 0) {
var fileHandler = this.IOService.getProtocolHandler('file').QueryInterface(Ci.nsIFileProtocolHandler);
var fileHandler = Services.io.getProtocolHandler('file').QueryInterface(Ci.nsIFileProtocolHandler);
var tempLocalFile = fileHandler.getFileFromURLSpec(aURI);
newURI = this.IOService.newFileURI(tempLocalFile);
newURI = Services.io.newFileURI(tempLocalFile);
}
else {
if (!/^\w+\:/.test(aURI)) aURI = 'http://'+aURI;
newURI = this.IOService.newURI(aURI, null, null);
newURI = Services.io.newURI(aURI, null, null);
}
return newURI;
},