Bug 645089 - Stop using [deprecated] Storage methods (XPIProvider.jsm)

r=Unfocused
This commit is contained in:
Shawn Wilsher 2011-03-31 10:19:31 -07:00
parent db69572e5f
commit 2a3d1a2c98

View File

@ -4564,7 +4564,7 @@ var XPIDatabase = {
// Note that binding to index 0 sets the value for the ?1 parameter
stmt = this.getStatement("getVisibleAddons_" + aTypes.length, sql);
for (let i = 0; i < aTypes.length; i++)
stmt.bindStringParameter(i, aTypes[i]);
stmt.bindByIndex(i, aTypes[i]);
}
stmt.executeAsync(new AsyncAddonListCallback(aCallback));
@ -4633,7 +4633,7 @@ var XPIDatabase = {
stmt = this.getStatement("getVisibleAddonsWithPendingOperations_" +
aTypes.length, sql);
for (let i = 0; i < aTypes.length; i++)
stmt.bindStringParameter(i, aTypes[i]);
stmt.bindByIndex(i, aTypes[i]);
}
stmt.executeAsync(new AsyncAddonListCallback(aCallback));