From b2edd026308d7aea7b5ff871dc1ca2bfd116df0a Mon Sep 17 00:00:00 2001 From: Asaf Romano Date: Sat, 14 Apr 2012 22:11:10 +0300 Subject: [PATCH] Bug 710259 - New Safari migrator (OS X & Windows). r=mak. --- browser/components/build/nsModule.cpp | 7 - browser/components/migration/Makefile.in | 8 - .../migration/content/migration.xul | 5 - .../src/BrowserProfileMigrators.manifest | 2 + browser/components/migration/src/Makefile.in | 28 +- .../migration/src/MigrationUtils.jsm | 4 +- .../migration/src/SafariProfileMigrator.js | 680 +++++++++ .../migration/src/nsSafariProfileMigrator.cpp | 1265 ----------------- .../migration/src/nsSafariProfileMigrator.h | 134 -- .../browser/migration/migration.properties | 2 +- 10 files changed, 699 insertions(+), 1436 deletions(-) create mode 100644 browser/components/migration/src/SafariProfileMigrator.js delete mode 100644 browser/components/migration/src/nsSafariProfileMigrator.cpp delete mode 100644 browser/components/migration/src/nsSafariProfileMigrator.h diff --git a/browser/components/build/nsModule.cpp b/browser/components/build/nsModule.cpp index e467fe65e988..d3fe937f6cfe 100644 --- a/browser/components/build/nsModule.cpp +++ b/browser/components/build/nsModule.cpp @@ -52,8 +52,6 @@ #if defined(XP_WIN) && !defined(__MINGW32__) #include "nsIEProfileMigrator.h" #include "nsIEHistoryEnumerator.h" -#elif defined(XP_MACOSX) -#include "nsSafariProfileMigrator.h" #endif #include "rdf.h" @@ -80,8 +78,6 @@ NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGNOMEShellService, Init) #if defined(XP_WIN) && !defined(__MINGW32__) NS_GENERIC_FACTORY_CONSTRUCTOR(nsIEProfileMigrator) NS_GENERIC_FACTORY_CONSTRUCTOR(nsIEHistoryEnumerator) -#elif defined(XP_MACOSX) -NS_GENERIC_FACTORY_CONSTRUCTOR(nsSafariProfileMigrator) #endif NS_GENERIC_FACTORY_CONSTRUCTOR(nsFeedSniffer) @@ -101,7 +97,6 @@ NS_DEFINE_NAMED_CID(NS_WINIEPROFILEMIGRATOR_CID); NS_DEFINE_NAMED_CID(NS_WINIEHISTORYENUMERATOR_CID); #elif defined(XP_MACOSX) NS_DEFINE_NAMED_CID(NS_SHELLSERVICE_CID); -NS_DEFINE_NAMED_CID(NS_SAFARIPROFILEMIGRATOR_CID); #endif NS_DEFINE_NAMED_CID(NS_PRIVATE_BROWSING_SERVICE_WRAPPER_CID); @@ -119,7 +114,6 @@ static const mozilla::Module::CIDEntry kBrowserCIDs[] = { { &kNS_WINIEHISTORYENUMERATOR_CID, false, NULL, nsIEHistoryEnumeratorConstructor }, #elif defined(XP_MACOSX) { &kNS_SHELLSERVICE_CID, false, NULL, nsMacShellServiceConstructor }, - { &kNS_SAFARIPROFILEMIGRATOR_CID, false, NULL, nsSafariProfileMigratorConstructor }, #endif { &kNS_PRIVATE_BROWSING_SERVICE_WRAPPER_CID, false, NULL, nsPrivateBrowsingServiceWrapperConstructor }, { NULL } @@ -154,7 +148,6 @@ static const mozilla::Module::ContractIDEntry kBrowserContracts[] = { { NS_IEHISTORYENUMERATOR_CONTRACTID, &kNS_WINIEHISTORYENUMERATOR_CID }, #elif defined(XP_MACOSX) { NS_SHELLSERVICE_CONTRACTID, &kNS_SHELLSERVICE_CID }, - { NS_BROWSERPROFILEMIGRATOR_CONTRACTID_PREFIX "safari", &kNS_SAFARIPROFILEMIGRATOR_CID }, #endif { NS_PRIVATE_BROWSING_SERVICE_CONTRACTID, &kNS_PRIVATE_BROWSING_SERVICE_WRAPPER_CID }, { NULL } diff --git a/browser/components/migration/Makefile.in b/browser/components/migration/Makefile.in index 80d21a5d5809..718f6b642bf2 100644 --- a/browser/components/migration/Makefile.in +++ b/browser/components/migration/Makefile.in @@ -46,11 +46,3 @@ DIRS = public src TEST_DIRS += tests include $(topsrcdir)/config/rules.mk - -# Needed for preprocessor removal of IE Profile Migrator label - bug 236901 -ifeq ($(OS_ARCH),WINNT) -ifdef GNU_CXX -DEFINES += -DNO_IE_MIGRATOR=1 -endif -endif - diff --git a/browser/components/migration/content/migration.xul b/browser/components/migration/content/migration.xul index 636421a736e1..cc53a7bff943 100644 --- a/browser/components/migration/content/migration.xul +++ b/browser/components/migration/content/migration.xul @@ -67,13 +67,8 @@ -#ifdef XP_MACOSX -#elifdef XP_WIN -#ifndef NO_IE_MIGRATOR -#endif -#endif