Add MOZ_CRASHREPORTER ifdefs to the patch for bug 429592. r=captain bustage

--HG--
extra : rebase_source : 52d8221942a9be96dc76a546fbfa4c573331c1bf
This commit is contained in:
Benjamin Smedberg 2011-11-04 15:13:58 -04:00
parent 1f505215dc
commit 937e72e1de

View File

@ -38,10 +38,13 @@
#include "mozilla/HangMonitor.h"
#include "mozilla/Monitor.h"
#include "mozilla/Preferences.h"
#include "nsExceptionHandler.h"
#include "nsXULAppAPI.h"
#include "nsThreadUtils.h"
#ifdef MOZ_CRASHREPORTER
#include "nsExceptionHandler.h"
#endif
#ifdef XP_WIN
#include <windows.h>
#endif
@ -100,8 +103,10 @@ Crash()
}
#endif
#ifdef MOZ_CRASHREPORTER
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("Hang"),
NS_LITERAL_CSTRING("1"));
#endif
NS_RUNTIMEABORT("HangMonitor triggered");
}