Bug 645086 - Stop using [deprecated] Storage methods (nsPrivateBrowsingService.js)

r=ehsan
This commit is contained in:
Shawn Wilsher 2011-03-31 10:19:31 -07:00
Родитель 69e11c4ea6
Коммит e2e4928132
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -656,10 +656,10 @@ PrivateBrowsingService.prototype = {
"AND state NOT IN (?2, ?3, ?4)"
);
let pattern = stmt.escapeStringForLIKE(aDomain, "/");
stmt.bindStringParameter(0, "%" + pattern + "%");
stmt.bindInt32Parameter(1, Ci.nsIDownloadManager.DOWNLOAD_DOWNLOADING);
stmt.bindInt32Parameter(2, Ci.nsIDownloadManager.DOWNLOAD_PAUSED);
stmt.bindInt32Parameter(3, Ci.nsIDownloadManager.DOWNLOAD_QUEUED);
stmt.bindByIndex(0, "%" + pattern + "%");
stmt.bindByIndex(1, Ci.nsIDownloadManager.DOWNLOAD_DOWNLOADING);
stmt.bindByIndex(2, Ci.nsIDownloadManager.DOWNLOAD_PAUSED);
stmt.bindByIndex(3, Ci.nsIDownloadManager.DOWNLOAD_QUEUED);
try {
stmt.execute();
}
@ -719,7 +719,7 @@ PrivateBrowsingService.prototype = {
"WHERE name LIKE ?1 ESCAPE '/'"
);
let pattern = stmt.escapeStringForLIKE(aDomain, "/");
stmt.bindStringParameter(0, "%" + pattern);
stmt.bindByIndex(0, "%" + pattern);
try {
while (stmt.executeStep())
if (stmt.getString(0).hasRootDomain(aDomain))