Index: content/gpu/gpu_child_thread.cc |
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc |
index 1fe92720338bc819404b810e80f00487f9fde67a..bd1ffce2fe47d222ecbeef6765d92a3763d11f24 100644 |
--- a/content/gpu/gpu_child_thread.cc |
+++ b/content/gpu/gpu_child_thread.cc |
@@ -248,7 +248,7 @@ void GpuChildThread::OnInitialize() { |
if (dead_on_arrival_) { |
LOG(ERROR) << "Exiting GPU process due to errors during initialization"; |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
return; |
} |
@@ -280,7 +280,7 @@ void GpuChildThread::OnInitialize() { |
void GpuChildThread::OnFinalize() { |
// Quit the GPU process |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
void GpuChildThread::StopWatchdog() { |
@@ -329,7 +329,7 @@ void GpuChildThread::OnCollectGraphicsInfo() { |
#if defined(OS_WIN) |
if (!in_browser_process_) { |
// The unsandboxed GPU process fulfilled its duty. Rest in peace. |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
#endif // OS_WIN |
} |