Backed out changeset bda8efa53512

This commit is contained in:
Chris Jones
2010-03-18 21:01:10 -05:00
parent cd57df6d13
commit 43838bad72
6 changed files with 51 additions and 19 deletions

View File

@@ -48,9 +48,6 @@
#include "nsContentUtils.h"
#include "nsCRT.h"
#ifdef MOZ_CRASHREPORTER
# include "nsExceptionHandler.h"
#endif
#include "nsNPAPIPlugin.h"
using base::KillProcess;
@@ -261,10 +258,8 @@ PluginModuleParent::ActorDestroy(ActorDestroyReason why)
{
switch (why) {
case AbnormalShutdown: {
#ifdef MOZ_CRASHREPORTER
nsCOMPtr<nsIFile> dump;
if (CrashReporter::TakeMinidumpForChild(ChildProcessHandle(),
getter_AddRefs(dump))) {
if (TakeMinidump(getter_AddRefs(dump))) {
WriteExtraDataForMinidump(dump);
if (NS_SUCCEEDED(dump->GetLeafName(mDumpID))) {
mDumpID.Replace(mDumpID.Length() - 4, 4,
@@ -274,7 +269,6 @@ PluginModuleParent::ActorDestroy(ActorDestroyReason why)
else {
NS_WARNING("[PluginModuleParent::ActorDestroy] abnormal shutdown without minidump!");
}
#endif
mShutdown = true;
// Defer the PluginCrashed method so that we don't re-enter