From 5cb2757c4bbe2b6836917743eb1978194feae2df Mon Sep 17 00:00:00 2001 From: "davidm%netscape.com" Date: Wed, 3 May 2000 02:52:45 +0000 Subject: [PATCH] 13182 [PI] Internet Config support for MIME type mapping. git-svn-id: svn://10.0.0.236/trunk@68021 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsAppShellFactory.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/mozilla/xpfe/appshell/src/nsAppShellFactory.cpp b/mozilla/xpfe/appshell/src/nsAppShellFactory.cpp index 4ca6b761460..3fd0877d566 100644 --- a/mozilla/xpfe/appshell/src/nsAppShellFactory.cpp +++ b/mozilla/xpfe/appshell/src/nsAppShellFactory.cpp @@ -46,11 +46,12 @@ #include "nsFileLocations.h" #ifdef XP_MAC -#include "nsUserInfoMac.h" -#else -#include "nsUserInfo.h" +#include "nsMacMIMEDataSource.h" +NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacMIMEDataSource); #endif +#include "nsUserInfo.h" + /* extern the factory entry points for each component... */ nsresult NS_NewAppShellServiceFactory(nsIFactory** aFactory); nsresult NS_NewXPConnectFactoryFactory(nsIFactory** aResult); @@ -117,6 +118,13 @@ static nsModuleComponentInfo gAppShellModuleInfo[] = NS_USERINFO_PROGID, nsUserInfoConstructor, }, + #if XP_MAC + { "MacMIME data source", + NS_NATIVEMIMEDATASOURCE_CID, + NS_NATIVEMIMEDATASOURCE_PROGID, + nsMacMIMEDataSourceConstructor, + }, + #endif }; NS_IMPL_NSGETMODULE("appshell", gAppShellModuleInfo)