From fd25a11c2326c54d1c9e538cd39911223a46134f Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 13 Sep 2007 20:34:59 +0000 Subject: Fix for move of GeckoPromptService. svn path=/trunk/; revision=7429 --- embed/xulrunner/src/gecko-init.cpp | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'embed') diff --git a/embed/xulrunner/src/gecko-init.cpp b/embed/xulrunner/src/gecko-init.cpp index 5b4f62a93..c7954bff3 100644 --- a/embed/xulrunner/src/gecko-init.cpp +++ b/embed/xulrunner/src/gecko-init.cpp @@ -85,7 +85,6 @@ #include "EmbedContentListener.h" #include "EmbedEventListener.h" #include "EmbedWindowCreator.h" -#include "GeckoPromptService.h" #ifdef MOZ_ACCESSIBILITY_ATK #include "nsIAccessibilityService.h" @@ -100,29 +99,8 @@ #include "gecko-init-private.h" #include "gecko-init-internal.h" -NS_GENERIC_FACTORY_CONSTRUCTOR(GeckoPromptService) - -static const nsModuleComponentInfo defaultAppComps[] = { - { - GECKO_PROMPT_SERVICE_CLASSNAME, - GECKO_PROMPT_SERVICE_CID, - "@mozilla.org/embedcomp/prompt-service;1", - GeckoPromptServiceConstructor - }, -#ifdef HAVE_NSINONBLOCKINGALERTSERVICE_H - { - GECKO_PROMPT_SERVICE_CLASSNAME, - GECKO_PROMPT_SERVICE_CID, - "@mozilla.org/embedcomp/nbalert-service;1", - GeckoPromptServiceConstructor - }, -#endif /* HAVE_NSINONBLOCKINGALERTSERVICE_H */ -}; - GtkWidget *sOffscreenWindow = 0; GtkWidget *sOffscreenFixed = 0; -const nsModuleComponentInfo *sAppComps = defaultAppComps; -int sNumAppComps = sizeof (defaultAppComps) / sizeof (nsModuleComponentInfo); nsILocalFile *sProfileDir = nsnull; nsISupports *sProfileLock = nsnull; nsIDirectoryServiceProvider* sAppFileLocProvider; @@ -196,7 +174,8 @@ RegisterAppComponents(void) nsCOMPtr cm; rv = NS_GetComponentManager (getter_AddRefs (cm)); NS_ENSURE_SUCCESS (rv, rv); - + +#if 0 for (int i = 0; i < sNumAppComps; ++i) { nsCOMPtr componentFactory; rv = NS_NewGenericFactory(getter_AddRefs(componentFactory), @@ -217,6 +196,7 @@ RegisterAppComponents(void) NS_ASSERTION(NS_SUCCEEDED(rv), "Unable to self-register component"); } } +#endif return rv; } -- cgit