Bug 1054965 - initialize the crash reporter correctly in GMP children; reorder the init method so that mac doesn't early-return it away, r=smichaud

--HG--
extra : rebase_source : 7accc05d988ee8d5b6101c012f2d4e23fa631d75
This commit is contained in:
Benjamin Smedberg 2014-08-19 15:22:16 -04:00
parent 5280bfadfd
commit b7f4211b2c

View File

@ -128,14 +128,15 @@ GMPChild::Init(const std::string& aPluginPath,
return false;
}
#ifdef MOZ_CRASHREPORTER
SendPCrashReporterConstructor(CrashReporter::CurrentThreadId());
#endif
#if defined(XP_MACOSX) && defined(MOZ_GMP_SANDBOX)
mPluginPath = aPluginPath;
return true;
#endif
#ifdef MOZ_CRASHREPORTER
SendPCrashReporterConstructor(CrashReporter::CurrentThreadId());
#endif
#if defined(XP_WIN)
mozilla::SandboxTarget::Instance()->StartSandbox();
#endif