| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/hang_monitor/hang_crash_dump_win.h" | 5 #include "chrome/browser/hang_monitor/hang_crash_dump_win.h" |
| 6 | 6 |
| 7 #include "chrome/common/chrome_constants.h" | 7 #include "chrome/common/chrome_constants.h" |
| 8 #include "content/public/common/result_codes.h" | 8 #include "content/public/common/result_codes.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 HANDLE remote_thread = CreateRemoteThread(hprocess, NULL, 0, | 36 HANDLE remote_thread = CreateRemoteThread(hprocess, NULL, 0, |
| 37 &HungPluginDumpAndExit, 0, 0, NULL); | 37 &HungPluginDumpAndExit, 0, 0, NULL); |
| 38 if (remote_thread) { | 38 if (remote_thread) { |
| 39 WaitForSingleObject(remote_thread, kGenerateDumpTimeoutMS); | 39 WaitForSingleObject(remote_thread, kGenerateDumpTimeoutMS); |
| 40 CloseHandle(remote_thread); | 40 CloseHandle(remote_thread); |
| 41 } | 41 } |
| 42 | 42 |
| 43 TerminateProcess(hprocess, content::RESULT_CODE_HUNG); | 43 TerminateProcess(hprocess, content::RESULT_CODE_HUNG); |
| 44 WaitForSingleObject(hprocess, kTerminateTimeoutMS); | 44 WaitForSingleObject(hprocess, kTerminateTimeoutMS); |
| 45 } | 45 } |
| OLD | NEW |