fx-compat: XPCOMUtils.generateQI() → ChromeUtils.generateQI()

This commit is contained in:
Dan Stillman 2020-06-30 02:08:08 -04:00
parent 4d35cdf095
commit ccbc785499
8 changed files with 12 additions and 17 deletions

View file

@ -356,9 +356,9 @@ ZoteroAutoComplete.prototype.stopSearch = function(){
ZoteroAutoComplete.prototype.classDescription = ZOTERO_AC_CLASSNAME;
ZoteroAutoComplete.prototype.classID = ZOTERO_AC_CID;
ZoteroAutoComplete.prototype.contractID = ZOTERO_AC_CONTRACTID;
ZoteroAutoComplete.prototype.QueryInterface = XPCOMUtils.generateQI([
ZoteroAutoComplete.prototype.QueryInterface = ChromeUtils.generateQI([
Components.interfaces.nsIAutoCompleteSearch,
Components.interfaces.nsIAutoCompleteObserver,
Components.interfaces.nsISupports]);
Components.interfaces.nsIAutoCompleteObserver
]);
var NSGetFactory = XPCOMUtils.generateNSGetFactory([ZoteroAutoComplete]);

View file

@ -1330,8 +1330,7 @@ ZoteroProtocolHandler.prototype = {
contractID: ZOTERO_PROTOCOL_CONTRACTID,
classDescription: ZOTERO_PROTOCOL_NAME,
classID: ZOTERO_PROTOCOL_CID,
QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsISupports,
Components.interfaces.nsIProtocolHandler])
QueryInterface: ChromeUtils.generateQI([Components.interfaces.nsIProtocolHandler])
};

View file

@ -438,13 +438,11 @@ function ZoteroService() {
throw e;
}
}
ZoteroService.prototype = {
contractID: '@zotero.org/Zotero;1',
classDescription: 'Zotero',
classID: Components.ID('{e4c61080-ec2d-11da-8ad9-0800200c9a66}'),
QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsISupports,
Components.interfaces.nsIProtocolHandler])
QueryInterface: ChromeUtils.generateQI([])
}
function addInitCallback(callback) {
@ -657,8 +655,7 @@ ZoteroCommandLineHandler.prototype = {
classID: Components.ID("{531828f8-a16c-46be-b9aa-14845c3b010f}"),
service: true,
_xpcom_categories: [{category:"command-line-handler", entry:"m-zotero"}],
QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsICommandLineHandler,
Components.interfaces.nsISupports])
QueryInterface: ChromeUtils.generateQI([Components.interfaces.nsICommandLineHandler])
};
var NSGetFactory = XPCOMUtils.generateNSGetFactory([ZoteroService, ZoteroCommandLineHandler]);