From a474c48759c566a6838ee0f2d0405c14a7215b14 Mon Sep 17 00:00:00 2001 From: "asqueella%gmail.com" Date: Mon, 23 Jul 2007 23:36:16 +0000 Subject: [PATCH] Bug 388909 - fix build breakage from 384374 for MOZ_RDF-disabled builds p=romaxa r+sr=biesi --- uriloader/exthandler/nsExternalHelperAppService.cpp | 6 ++---- uriloader/exthandler/nsExternalHelperAppService.h | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp index 6b22c241aee..69dcbb914c6 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.cpp +++ b/uriloader/exthandler/nsExternalHelperAppService.cpp @@ -1000,12 +1000,12 @@ nsresult nsExternalHelperAppService::FillProtoInfoForSchemeFromDS( #endif } +#ifdef MOZ_RDF nsresult nsExternalHelperAppService::FillHandlerInfoForTypeFromDS( nsIRDFResource *aTypeNodeResource, const nsCAutoString &aType, nsIRDFService *rdf, const char *aTypeNodePrefix, nsIHandlerInfo * aHandlerInfo) { -#ifdef MOZ_RDF // we need a way to determine if this type resource is really in the graph // or not... Test that there's a #value arc from the type resource to the @@ -1040,10 +1040,8 @@ nsresult nsExternalHelperAppService::FillHandlerInfoForTypeFromDS( } return rv; -#else - return NS_ERROR_NOT_AVAILABLE; -#endif /* MOZ_RDF */ } +#endif /* MOZ_RDF */ nsresult nsExternalHelperAppService::FillMIMEInfoForExtensionFromDS( const nsACString& aFileExtension, nsIMIMEInfo * aMIMEInfo) diff --git a/uriloader/exthandler/nsExternalHelperAppService.h b/uriloader/exthandler/nsExternalHelperAppService.h index 631a59c9bcd..2b23c7be15b 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.h +++ b/uriloader/exthandler/nsExternalHelperAppService.h @@ -140,6 +140,7 @@ public: NS_HIDDEN_(nsresult) FillProtoInfoForSchemeFromDS( const nsACString& aScheme, nsIHandlerInfo * aMIMEInfo); +#ifdef MOZ_RDF /** * Fill in the generic handler info stuff; called by Fill*InfoFor*FromDS. * @@ -154,6 +155,7 @@ public: nsIRDFResource *aTypeNodeResource, const nsCAutoString& aType, nsIRDFService *aRDFService, const char *aTypeNodePrefix, nsIHandlerInfo * aHandlerInfo); +#endif /** * Given an extension, look up the user override information to see if we