Fix --disable-crashreporter build in nsAppRunner.cpp
authorBenjamin Smedberg <benjamin@smedbergs.us>
Tue, 22 Jun 2010 20:18:45 -0400
changeset 47028 d8ebed96aff7da4160fd87e23c2854934fcb96a2
parent 47027 9b5e11208a2a8941bbad31333f994237d1c0aef7
child 47029 014f02585f6d28185f8e0078c0fa86a4ad7113d4
push idunknown
push userunknown
push dateunknown
milestone1.9.3a6pre
Fix --disable-crashreporter build in nsAppRunner.cpp
toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -1113,17 +1113,19 @@ static const mozilla::Module::CIDEntry k
   { &kProfileServiceCID, false, ProfileServiceFactoryConstructor, NULL },
   { &kNativeAppSupportCID, false, NULL, ScopedXPCOMStartup::CreateAppSupport },
   { NULL }
 };
 
 static const mozilla::Module::ContractIDEntry kXREContracts[] = {
   { XULAPPINFO_SERVICE_CONTRACTID, &kAPPINFO_CID },
   { XULRUNTIME_SERVICE_CONTRACTID, &kAPPINFO_CID },
+#ifdef MOZ_CRASHREPORTER
   { NS_CRASHREPORTER_CONTRACTID, &kAPPINFO_CID },
+#endif
   { NS_PROFILESERVICE_CONTRACTID, &kProfileServiceCID },
   { NS_NATIVEAPPSUPPORT_CONTRACTID, &kNativeAppSupportCID },
   { NULL }
 };
 
 static const mozilla::Module kXREModule = {
   mozilla::Module::kVersion,
   kXRECIDs,