зеркало из https://github.com/mozilla/gecko-dev.git
115 строки
4.4 KiB
Python
115 строки
4.4 KiB
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# 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/.
|
|
|
|
XP_WIN = buildconfig.substs['OS_ARCH'] == 'WINNT'
|
|
XP_MACOSX = buildconfig.substs['MOZ_WIDGET_TOOLKIT'] == 'cocoa'
|
|
|
|
Classes = [
|
|
{
|
|
'cid': '{6F8BB968-C14F-4D6F-9733-6C6737B35DCE}',
|
|
'contract_ids': ['@mozilla.org/toolkit/profile-migrator;1'],
|
|
'jsm': 'resource:///modules/ProfileMigrator.jsm',
|
|
'constructor': 'ProfileMigrator',
|
|
},
|
|
{
|
|
'cid': '{4cec1de4-1671-4fc3-a53e-6c539dc77a26}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chrome'],
|
|
'jsm': 'resource:///modules/ChromeProfileMigrator.jsm',
|
|
'constructor': 'ChromeProfileMigrator',
|
|
},
|
|
{
|
|
'cid': '{8cece922-9720-42de-b7db-7cef88cb07ca}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chromium'],
|
|
'jsm': 'resource:///modules/ChromeProfileMigrator.jsm',
|
|
'constructor': 'ChromiumProfileMigrator',
|
|
},
|
|
{
|
|
'cid': '{91185366-ba97-4438-acba-48deaca63386}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=firefox'],
|
|
'jsm': 'resource:///modules/FirefoxProfileMigrator.jsm',
|
|
'constructor': 'FirefoxProfileMigrator',
|
|
},
|
|
]
|
|
|
|
if not XP_MACOSX:
|
|
Classes += [
|
|
{
|
|
'cid': '{47f75963-840b-4950-a1f0-d9c1864f8b8e}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chrome-beta'],
|
|
'jsm': 'resource:///modules/ChromeProfileMigrator.jsm',
|
|
'constructor': 'ChromeBetaMigrator',
|
|
},
|
|
]
|
|
|
|
if XP_WIN or XP_MACOSX:
|
|
Classes += [
|
|
{
|
|
'cid': '{4bf85aa5-4e21-46ca-825f-f9c51a5e8c76}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=canary'],
|
|
'jsm': 'resource:///modules/ChromeProfileMigrator.jsm',
|
|
'constructor': 'CanaryProfileMigrator',
|
|
},
|
|
{
|
|
'cid': '{3c7f6b7c-baa9-4338-acfa-04bf79f1dcf1}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chromium-edge'],
|
|
'jsm': 'resource:///modules/ChromeProfileMigrator.jsm',
|
|
'constructor': 'ChromiumEdgeMigrator',
|
|
},
|
|
{
|
|
'cid': '{0fc3d48a-c1c3-4871-b58f-a8b47d1555fb}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chromium-edge-beta'],
|
|
'jsm': 'resource:///modules/ChromeProfileMigrator.jsm',
|
|
'constructor': 'ChromiumEdgeBetaMigrator',
|
|
},
|
|
]
|
|
else:
|
|
Classes += [
|
|
{
|
|
'cid': '{7370a02a-4886-42c3-a4ec-d48c726ec30a}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chrome-dev'],
|
|
'jsm': 'resource:///modules/ChromeProfileMigrator.jsm',
|
|
'constructor': 'ChromeDevMigrator',
|
|
},
|
|
]
|
|
|
|
if XP_WIN:
|
|
Classes += [
|
|
{
|
|
'cid': '{3d2532e3-4932-4774-b7ba-968f5899d3a4}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=ie'],
|
|
'jsm': 'resource:///modules/IEProfileMigrator.jsm',
|
|
'constructor': 'IEProfileMigrator',
|
|
},
|
|
{
|
|
'cid': '{62e8834b-2d17-49f5-96ff-56344903a2ae}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=edge'],
|
|
'jsm': 'resource:///modules/EdgeProfileMigrator.jsm',
|
|
'constructor': 'EdgeProfileMigrator',
|
|
},
|
|
{
|
|
'cid': '{d0037b95-296a-4a4e-94b2-c3d075d20ab1}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=360se'],
|
|
'jsm': 'resource:///modules/360seProfileMigrator.jsm',
|
|
'constructor': 'Qihoo360seProfileMigrator',
|
|
},
|
|
]
|
|
|
|
if XP_MACOSX:
|
|
Classes += [
|
|
{
|
|
'cid': '{4b609ecf-60b2-4655-9df4-dc149e474da1}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=safari'],
|
|
'jsm': 'resource:///modules/SafariProfileMigrator.jsm',
|
|
'constructor': 'SafariProfileMigrator',
|
|
},
|
|
{
|
|
'cid': '{647bf80c-cd35-4ce6-b904-fd586b97ae48}',
|
|
'contract_ids': ['@mozilla.org/profile/migrator/keychainmigrationutils;1'],
|
|
'type': 'nsKeychainMigrationUtils',
|
|
'headers': ['nsKeychainMigrationUtils.h'],
|
|
},
|
|
]
|