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

This commit is contained in:
Benjamin Smedberg 2011-11-04 15:13:58 -04:00
parent 2b0bd55d45
commit 3e4c12ff70

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");
}