Index: content/gpu/gpu_child_thread.cc |
=================================================================== |
--- content/gpu/gpu_child_thread.cc (revision 152379) |
+++ content/gpu/gpu_child_thread.cc (working copy) |
@@ -17,7 +17,6 @@ |
#include "content/gpu/gpu_watchdog_thread.h" |
#include "content/public/common/content_client.h" |
#include "content/public/common/content_switches.h" |
-#include "content/public/common/result_codes.h" |
#include "ipc/ipc_channel_handle.h" |
#include "ipc/ipc_sync_message_filter.h" |
#include "ui/gl/gl_implementation.h" |
@@ -117,12 +116,8 @@ |
void GpuChildThread::OnInitialize() { |
if (dead_on_arrival_) { |
VLOG(1) << "Exiting GPU process due to errors during initialization"; |
- |
- // Exit with the exit code that would be returned if the GPU process was |
- // killed using task mamager so that it does not count as a crash. |
- // TODO(apatrick): this is temporary to see if this impacts the crash |
- // statistics. If it does then the crash accounting should be fixed. |
- exit(content::RESULT_CODE_KILLED); |
+ MessageLoop::current()->Quit(); |
+ return; |
} |
// We don't need to pipe log messages if we are running the GPU thread in |