Backed out changeset 5c817eb3498b (bug 1891146) for causing xpcshell failures in test_BackupService.js (Bug 1905413) CLOSED TREE

This commit is contained in:
Cristian Tuns
2024-06-28 16:10:51 -04:00
parent e36caeea97
commit 63f5f0e2d1
9 changed files with 15 additions and 335 deletions

View File

@@ -879,7 +879,6 @@ export class BackupService extends EventTarget {
}
this.#backupInProgress = true;
const backupTimer = Glean.browserBackup.totalBackupTime.start();
try {
lazy.logConsole.debug(`Creating backup for profile at ${profilePath}`);
@@ -1034,16 +1033,12 @@ export class BackupService extends EventTarget {
let nowSeconds = Math.floor(Date.now() / 1000);
Services.prefs.setIntPref(LAST_BACKUP_TIMESTAMP_PREF_NAME, nowSeconds);
this.#_state.lastBackupDate = nowSeconds;
Glean.browserBackup.totalBackupTime.stopAndAccumulate(backupTimer);
return {
stagingPath: renamedStagingPath,
compressedStagingPath,
archivePath,
};
} catch {
Glean.browserBackup.totalBackupTime.cancel(backupTimer);
return null;
} finally {
this.#backupInProgress = false;
}