diff options
Diffstat (limited to 'chrome/renderer/renderer_main.cc')
-rw-r--r-- | chrome/renderer/renderer_main.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc index 8ca5346..c376486 100644 --- a/chrome/renderer/renderer_main.cc +++ b/chrome/renderer/renderer_main.cc @@ -90,8 +90,9 @@ int RendererMain(const MainFunctionParams& parameters) { HandleRendererErrorTestParameters(parsed_command_line); - { - RenderProcess render_process; + std::wstring channel_name = + parsed_command_line.GetSwitchValue(switches::kProcessChannelID); + if (RenderProcess::GlobalInit(channel_name)) { bool run_loop = true; if (!no_sandbox) { run_loop = platform.EnableSandbox(); @@ -107,6 +108,8 @@ int RendererMain(const MainFunctionParams& parameters) { if (pool) pool->Recycle(); MessageLoop::current()->Run(); } + + RenderProcess::GlobalCleanup(); } platform.PlatformUninitialize(); return 0; |