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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 1678183003: Call QuitNow instead of exit(0) to kill GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 87035bf9796f85ec2cc57820c4727970f2df6d9f..d0ed3d1c42908ca3b99bd7de42dc60870fad4c93 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -1142,10 +1142,9 @@ bool GpuCommandBufferStub::CheckContextLost() {
switches::kInProcessGPU)) {
LOG(ERROR) << "Exiting GPU process because some drivers cannot recover"
<< " from problems.";
-#if defined(OS_WIN)
- base::win::SetShouldCrashOnProcessDetach(false);
-#endif
- exit(0);
+ // Signal the message loop to quit to shut down other threads
+ // gracefully.
+ base::MessageLoop::current()->QuitNow();
}
// Lose all other contexts if the reset was triggered by the robustness
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698