diff --git a/docshell/build/nsDocShellModule.cpp b/docshell/build/nsDocShellModule.cpp index e0182c0b4ab1..7df39288a5c2 100644 --- a/docshell/build/nsDocShellModule.cpp +++ b/docshell/build/nsDocShellModule.cpp @@ -56,7 +56,9 @@ #include "nsPrefetchService.h" #include "nsOfflineCacheUpdate.h" #include "nsLocalHandlerApp.h" +#ifdef MOZ_ENABLE_DBUS #include "nsDBusHandlerApp.h" +#endif // session history #include "nsSHEntry.h" @@ -113,7 +115,9 @@ NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsOfflineCacheUpdateService, nsOfflineCacheUpdateService::GetInstance) NS_GENERIC_FACTORY_CONSTRUCTOR(nsOfflineCacheUpdate) NS_GENERIC_FACTORY_CONSTRUCTOR(PlatformLocalHandlerApp_t) +#ifdef MOZ_ENABLE_DBUS NS_GENERIC_FACTORY_CONSTRUCTOR(nsDBusHandlerApp) +#endif #if defined(XP_MAC) || defined(XP_MACOSX) #include "nsInternetConfigService.h" @@ -238,9 +242,10 @@ static const nsModuleComponentInfo gDocShellModuleInfo[] = { nsOfflineCacheUpdateConstructor, }, { "Local Application Handler App", NS_LOCALHANDLERAPP_CID, NS_LOCALHANDLERAPP_CONTRACTID, PlatformLocalHandlerApp_tConstructor, }, +#ifdef MOZ_ENABLE_DBUS { "DBus Handler App", NS_DBUSHANDLERAPP_CID, NS_DBUSHANDLERAPP_CONTRACTID, nsDBusHandlerAppConstructor}, - +#endif #if defined(XP_MAC) || defined(XP_MACOSX) { "Internet Config Service", NS_INTERNETCONFIGSERVICE_CID, NS_INTERNETCONFIGSERVICE_CONTRACTID, nsInternetConfigServiceConstructor, },