Bug 718280 - Part 1: Move resource type constants into MigrationUtils. r=NeilDeakin

Differential Revision: https://phabricator.services.mozilla.com/D164138
This commit is contained in:
Mike Conley
2022-12-13 17:01:24 +00:00
parent 8ef9b0adeb
commit 8a65c0aa96
6 changed files with 34 additions and 43 deletions

View File

@@ -42,13 +42,15 @@ function getL10n() {
*/
class MigrationUtils {
resourceTypes = Object.freeze({
COOKIES: Ci.nsIBrowserProfileMigrator.COOKIES,
HISTORY: Ci.nsIBrowserProfileMigrator.HISTORY,
FORMDATA: Ci.nsIBrowserProfileMigrator.FORMDATA,
PASSWORDS: Ci.nsIBrowserProfileMigrator.PASSWORDS,
BOOKMARKS: Ci.nsIBrowserProfileMigrator.BOOKMARKS,
OTHERDATA: Ci.nsIBrowserProfileMigrator.OTHERDATA,
SESSION: Ci.nsIBrowserProfileMigrator.SESSION,
ALL: 0x0000,
/* 0x01 used to be used for settings, but was removed. */
COOKIES: 0x0002,
HISTORY: 0x0004,
FORMDATA: 0x0008,
PASSWORDS: 0x0010,
BOOKMARKS: 0x0020,
OTHERDATA: 0x0040,
SESSION: 0x0080,
});
/**