Bug 1184822 - Use classId to get provider. r=fabrice

This commit is contained in:
Eric Tsai 2015-08-06 11:54:14 +08:00
parent 34a3a54a18
commit 3f872986d2

View File

@ -27,7 +27,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "ppmm",
function ActiveProvider(aProvider) {
this.id = aProvider.id;
this._instance = Cc[aProvider.contractId].getService(Ci.nsISystemUpdateProvider);
this._instance = Components.classesByID[aProvider.id].getService(Ci.nsISystemUpdateProvider);
this._instance.setListener(this);
}