Bug 773830: Check GetEnabled() before OOPInit(). r=ted

This commit is contained in:
Chris Jones 2012-07-13 17:47:23 -07:00
parent 615b1f9d9a
commit f4cc361c62

View File

@ -254,7 +254,9 @@ bool
GeckoChildProcessHost::SyncLaunch(std::vector<std::string> aExtraOpts, int aTimeoutMs, base::ProcessArchitecture arch)
{
#ifdef MOZ_CRASHREPORTER
CrashReporter::OOPInit();
if (CrashReporter::GetEnabled()) {
CrashReporter::OOPInit();
}
#endif
#ifdef XP_WIN
@ -299,7 +301,9 @@ bool
GeckoChildProcessHost::AsyncLaunch(std::vector<std::string> aExtraOpts)
{
#ifdef MOZ_CRASHREPORTER
CrashReporter::OOPInit();
if (CrashReporter::GetEnabled()) {
CrashReporter::OOPInit();
}
#endif
#ifdef XP_WIN