fixes bug 216854 "necko should not have a compile-time dependency on exthandler" r=dougt sr=bryner

This commit is contained in:
darin%meer.net 2003-09-16 16:12:59 +00:00
parent 8df24a01d8
commit 452afe9434
5 changed files with 2 additions and 8 deletions

View File

@ -46,7 +46,6 @@
#include "nsXPIDLString.h" #include "nsXPIDLString.h"
#include "nsString.h" #include "nsString.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "nsCExternalHandlerService.h"
#include "nsIMIMEService.h" #include "nsIMIMEService.h"
#include "nsMimeTypes.h" #include "nsMimeTypes.h"
@ -86,7 +85,7 @@ nsIMIMEService *
nsJARProtocolHandler::MimeService() nsJARProtocolHandler::MimeService()
{ {
if (!mMimeService) if (!mMimeService)
mMimeService = do_GetService(NS_MIMESERVICE_CONTRACTID); mMimeService = do_GetService("@mozilla.org/mime;1");
return mMimeService.get(); return mMimeService.get();
} }

View File

@ -30,7 +30,6 @@ MODULE = necko
LIBRARY_NAME = neckobase_s LIBRARY_NAME = neckobase_s
REQUIRES = xpcom \ REQUIRES = xpcom \
string \ string \
exthandler \
mimetype \ mimetype \
uconv \ uconv \
locale \ locale \

View File

@ -60,8 +60,6 @@
#include "prerror.h" #include "prerror.h"
#include "nsCRT.h" #include "nsCRT.h"
#include "nsInt64.h" #include "nsInt64.h"
#include "nsCExternalHandlerService.h"
#include "nsIMIMEService.h"
#include "nsIFile.h" #include "nsIFile.h"
#include "nsDirectoryIndexStream.h" #include "nsDirectoryIndexStream.h"
#include "nsMimeTypes.h" #include "nsMimeTypes.h"

View File

@ -31,7 +31,6 @@ LIBRARY_NAME = nkjar_s
REQUIRES = xpcom \ REQUIRES = xpcom \
string \ string \
jar \ jar \
exthandler \
mimetype \ mimetype \
caps \ caps \
js \ js \

View File

@ -46,7 +46,6 @@
#include "nsXPIDLString.h" #include "nsXPIDLString.h"
#include "nsString.h" #include "nsString.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "nsCExternalHandlerService.h"
#include "nsIMIMEService.h" #include "nsIMIMEService.h"
#include "nsMimeTypes.h" #include "nsMimeTypes.h"
@ -86,7 +85,7 @@ nsIMIMEService *
nsJARProtocolHandler::MimeService() nsJARProtocolHandler::MimeService()
{ {
if (!mMimeService) if (!mMimeService)
mMimeService = do_GetService(NS_MIMESERVICE_CONTRACTID); mMimeService = do_GetService("@mozilla.org/mime;1");
return mMimeService.get(); return mMimeService.get();
} }