2012-01-15 23:27:34 -08:00
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
2012-05-28 02:43:59 -07:00
|
|
|
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
Components.utils.import("resource:///modules/MigrationUtils.jsm");
|
2012-01-15 23:27:34 -08:00
|
|
|
|
|
|
|
function ProfileMigrator() {
|
|
|
|
}
|
|
|
|
|
|
|
|
ProfileMigrator.prototype = {
|
2012-05-28 02:43:59 -07:00
|
|
|
migrate: MigrationUtils.startupMigration.bind(MigrationUtils),
|
|
|
|
QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsIProfileMigrator]),
|
2012-01-15 23:27:34 -08:00
|
|
|
classDescription: "Profile Migrator",
|
|
|
|
contractID: "@mozilla.org/toolkit/profile-migrator;1",
|
|
|
|
classID: Components.ID("6F8BB968-C14F-4D6F-9733-6C6737B35DCE")
|
|
|
|
};
|
|
|
|
|
2012-10-31 09:13:28 -07:00
|
|
|
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([ProfileMigrator]);
|