зеркало из https://github.com/mozilla/gecko-dev.git
Allow the IID for services to not be specified, to better support flattening.
Not part of the build.
This commit is contained in:
Родитель
2911f95832
Коммит
4cf6912d7c
|
@ -152,7 +152,7 @@ class _Class:
|
|||
def createInstance(self, iid = None):
|
||||
import xpcom.client
|
||||
return xpcom.client.Component(self.contractid, _get_good_iid(iid))
|
||||
def getService(self, iid):
|
||||
def getService(self, iid = None):
|
||||
return _xpcom.GetGlobalServiceManager().getService(self.contractid, _get_good_iid(iid))
|
||||
|
||||
class _Classes(_ComponentCollection):
|
||||
|
|
Загрузка…
Ссылка в новой задаче