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

Unified Diff: base/process/process_win.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
Index: base/process/process_win.cc
diff --git a/base/process/process_win.cc b/base/process/process_win.cc
index afc6a786ba439dd96b7fd1a621902b7e26a10e28..623212654ee5cdabfee2355f81a8dc87f5f57d94 100644
--- a/base/process/process_win.cc
+++ b/base/process/process_win.cc
@@ -82,6 +82,11 @@ bool Process::CanBackgroundProcesses() {
return true;
}
+// static
+void Process::TerminateCurrentProcessImmediately(int exit_code) {
+ ::TerminateProcess(GetCurrentProcess(), exit_code);
+}
+
bool Process::IsValid() const {
return process_.IsValid() || is_current();
}

Powered by Google App Engine
This is Rietveld 408576698