forked from mirrors/gecko-dev
--HG-- extra : commitid : Atr9jgZIJ7U extra : rebase_source : 9688872e98ee1714500b8a853542f98224ac38fd
30 lines
1.3 KiB
JavaScript
30 lines
1.3 KiB
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
const { classes: Cc, interfaces: Ci, utils: Cu, results: Cr } = Components;
|
|
|
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
Cu.import("resource://gre/modules/Services.jsm");
|
|
Cu.import("resource://gre/modules/Task.jsm");
|
|
Cu.import("resource:///modules/MigrationUtils.jsm");
|
|
Cu.import("resource:///modules/MSMigrationUtils.jsm");
|
|
|
|
function EdgeProfileMigrator() {
|
|
}
|
|
|
|
EdgeProfileMigrator.prototype = Object.create(MigratorPrototype);
|
|
|
|
EdgeProfileMigrator.prototype.getResources = function() {
|
|
let resources = [
|
|
MSMigrationUtils.getBookmarksMigrator(MSMigrationUtils.MIGRATION_TYPE_EDGE),
|
|
MSMigrationUtils.getCookiesMigrator(MSMigrationUtils.MIGRATION_TYPE_EDGE),
|
|
];
|
|
return resources.filter(r => r.exists);
|
|
};
|
|
|
|
EdgeProfileMigrator.prototype.classDescription = "Edge Profile Migrator";
|
|
EdgeProfileMigrator.prototype.contractID = "@mozilla.org/profile/migrator;1?app=browser&type=edge";
|
|
EdgeProfileMigrator.prototype.classID = Components.ID("{62e8834b-2d17-49f5-96ff-56344903a2ae}");
|
|
|
|
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([EdgeProfileMigrator]);
|