mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1330529 - Part 5: Remove some Windows line endings from PluginProcessChild.cpp. r=jimm
MozReview-Commit-ID: DhNuxymQ97U --HG-- extra : rebase_source : a44fbff88fa2512d59944b8ef9b27417199a8962 extra : histedit_source : 48145759bc8918864435730b102ab3ef7785eafc
This commit is contained in:
parent
6955347be6
commit
d24d25c9c2
@ -37,7 +37,6 @@ using mozilla::ipc::IOThreadChild;
|
||||
namespace mozilla {
|
||||
namespace plugins {
|
||||
|
||||
|
||||
bool
|
||||
PluginProcessChild::Init(int aArgc, char* aArgv[])
|
||||
{
|
||||
@ -113,11 +112,11 @@ PluginProcessChild::Init(int aArgc, char* aArgv[])
|
||||
|
||||
// We don't initialize XPCOM but we need the thread manager and the
|
||||
// logging framework for the FunctionBroker.
|
||||
NS_SetMainThread();
|
||||
mozilla::TimeStamp::Startup();
|
||||
NS_LogInit();
|
||||
NS_SetMainThread();
|
||||
mozilla::TimeStamp::Startup();
|
||||
NS_LogInit();
|
||||
mozilla::LogModule::Init();
|
||||
nsThreadManager::get().Init();
|
||||
nsThreadManager::get().Init();
|
||||
|
||||
#if defined(MOZ_SANDBOX)
|
||||
// This is probably the earliest we would want to start the sandbox.
|
||||
@ -155,14 +154,14 @@ void
|
||||
PluginProcessChild::CleanUp()
|
||||
{
|
||||
#if defined(OS_WIN)
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
// Shutdown components we started in Init. Note that KillClearOnShutdown
|
||||
// is an event that is regularly part of XPCOM shutdown. We do not
|
||||
// call XPCOM's shutdown but we need this event to be sent to avoid
|
||||
// leaking objects labeled as ClearOnShutdown.
|
||||
nsThreadManager::get().Shutdown();
|
||||
mozilla::KillClearOnShutdown(ShutdownPhase::ShutdownFinal);
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
// Shutdown components we started in Init. Note that KillClearOnShutdown
|
||||
// is an event that is regularly part of XPCOM shutdown. We do not
|
||||
// call XPCOM's shutdown but we need this event to be sent to avoid
|
||||
// leaking objects labeled as ClearOnShutdown.
|
||||
nsThreadManager::get().Shutdown();
|
||||
mozilla::KillClearOnShutdown(ShutdownPhase::ShutdownFinal);
|
||||
NS_LogTerm();
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user