Bug 709328 - Remove always true argument. r=mak77. a=js-only.

This commit is contained in:
Rafael Ávila de Espíndola 2011-12-12 15:35:35 -05:00
parent 15c1ec3864
commit 1e18150781

View File

@ -375,7 +375,7 @@ FormHistory.prototype = {
this.log("Initialization failed: " + e);
// If dbInit fails...
if (e.result == Cr.NS_ERROR_FILE_CORRUPTED) {
this.dbCleanup(true);
this.dbCleanup();
FormHistory.prototype.dbConnection = this.dbOpen();
this.dbInit();
} else {
@ -885,17 +885,14 @@ FormHistory.prototype = {
* Called when database creation fails. Finalizes database statements,
* closes the database connection, deletes the database file.
*/
dbCleanup : function (backup) {
this.log("Cleaning up DB file - close & remove & backup=" + backup)
dbCleanup : function () {
this.log("Cleaning up DB file - close & remove & backup")
// Create backup file
if (backup) {
let storage = Cc["@mozilla.org/storage/service;1"].
getService(Ci.mozIStorageService);
let backupFile = this.dbFile.leafName + ".corrupt";
storage.backupDatabaseFile(this.dbFile, backupFile);
}
let storage = Cc["@mozilla.org/storage/service;1"].
getService(Ci.mozIStorageService);
let backupFile = this.dbFile.leafName + ".corrupt";
storage.backupDatabaseFile(this.dbFile, backupFile);
this._dbFinalize();