Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2629623003: Win should call ::TerminateProcess to exit a renderer process (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« base/process/process_unittest.cc ('K') | « base/process/process_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index d51fe69dcc6a00e002ab87a5f47d2cd09e2e0ce9..5f8b2c878d7da229e17fef0cc48768b6e09ad658 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -948,7 +948,7 @@ void RenderThreadImpl::Shutdown() {
// it will exit the process before the browser side is ready to exit.
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSingleProcess))
- _exit(0);
+ base::Process::Current().TerminateCurrentProcessImmediately(0);
Primiano Tucci (use gerrit) 2017/01/17 07:55:16 No need for current() here
}
bool RenderThreadImpl::ShouldBeDestroyed() {
« base/process/process_unittest.cc ('K') | « base/process/process_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698