Source code

Revision control

Other Tools

# -*- 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'],
'constructor': 'ProfileMigrator',
},
{
'cid': '{4071880a-69e4-4c83-88b4-6c589a62801d}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=brave'],
'constructor': 'BraveProfileMigrator',
},
{
'cid': '{4cec1de4-1671-4fc3-a53e-6c539dc77a26}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chrome'],
'constructor': 'ChromeProfileMigrator',
},
{
'cid': '{8cece922-9720-42de-b7db-7cef88cb07ca}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chromium'],
'constructor': 'ChromiumProfileMigrator',
},
{
'cid': '{91185366-ba97-4438-acba-48deaca63386}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=firefox'],
'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'],
'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'],
'constructor': 'CanaryProfileMigrator',
},
{
'cid': '{3c7f6b7c-baa9-4338-acfa-04bf79f1dcf1}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chromium-edge'],
'constructor': 'ChromiumEdgeMigrator',
},
{
'cid': '{0fc3d48a-c1c3-4871-b58f-a8b47d1555fb}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chromium-edge-beta'],
'constructor': 'ChromiumEdgeBetaMigrator',
},
]
else:
Classes += [
{
'cid': '{7370a02a-4886-42c3-a4ec-d48c726ec30a}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chrome-dev'],
'constructor': 'ChromeDevMigrator',
},
]
if XP_WIN:
Classes += [
{
'cid': '{3d2532e3-4932-4774-b7ba-968f5899d3a4}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=ie'],
'constructor': 'IEProfileMigrator',
},
{
'cid': '{62e8834b-2d17-49f5-96ff-56344903a2ae}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=edge'],
'constructor': 'EdgeProfileMigrator',
},
{
'cid': '{2e1a182e-ce4f-4dc9-a22c-d4125b931552}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=chromium-360se'],
'constructor': 'Chromium360seMigrator',
},
]
if XP_MACOSX:
Classes += [
{
'cid': '{4b609ecf-60b2-4655-9df4-dc149e474da1}',
'contract_ids': ['@mozilla.org/profile/migrator;1?app=browser&type=safari'],
'constructor': 'SafariProfileMigrator',
},
{
'cid': '{647bf80c-cd35-4ce6-b904-fd586b97ae48}',
'contract_ids': ['@mozilla.org/profile/migrator/keychainmigrationutils;1'],
'type': 'nsKeychainMigrationUtils',
'headers': ['nsKeychainMigrationUtils.h'],
},
]