summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/migration/ProfileMigrator.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-20 08:28:12 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-20 08:28:12 +0200
commit4e7e4c2cbed8209974691f18180fa7ea8f00e785 (patch)
treee819b05bad4189d06a0ab87626a010e93849e0a0 /application/palemoon/components/migration/ProfileMigrator.js
parent8b960b23ac31d4dd0763f91ab5f494251467eeb1 (diff)
downloadUXP-4e7e4c2cbed8209974691f18180fa7ea8f00e785.tar
UXP-4e7e4c2cbed8209974691f18180fa7ea8f00e785.tar.gz
UXP-4e7e4c2cbed8209974691f18180fa7ea8f00e785.tar.lz
UXP-4e7e4c2cbed8209974691f18180fa7ea8f00e785.tar.xz
UXP-4e7e4c2cbed8209974691f18180fa7ea8f00e785.zip
[PALEMOON] Fix: The profile resseting - partially
https://github.com/MoonchildProductions/UXP/commit/aaf3409c46a5e472bc539a6ad5902f886c980e1f - Revert migration - Partially - no manual migration from Places - no migration from other browsers - no the cmd `-migration` - Fix migration files (`// Tycho:`) - Something in the last commit (a typo)
Diffstat (limited to 'application/palemoon/components/migration/ProfileMigrator.js')
-rw-r--r--application/palemoon/components/migration/ProfileMigrator.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/application/palemoon/components/migration/ProfileMigrator.js b/application/palemoon/components/migration/ProfileMigrator.js
new file mode 100644
index 000000000..f67823bae
--- /dev/null
+++ b/application/palemoon/components/migration/ProfileMigrator.js
@@ -0,0 +1,21 @@
+/* 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";
+
+Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
+Components.utils.import("resource:///modules/MigrationUtils.jsm");
+
+function ProfileMigrator() {
+}
+
+ProfileMigrator.prototype = {
+ migrate: MigrationUtils.startupMigration.bind(MigrationUtils),
+ QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsIProfileMigrator]),
+ classDescription: "Profile Migrator",
+ contractID: "@mozilla.org/toolkit/profile-migrator;1",
+ classID: Components.ID("6F8BB968-C14F-4D6F-9733-6C6737B35DCE")
+};
+
+this.NSGetFactory = XPCOMUtils.generateNSGetFactory([ProfileMigrator]);