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

Side by Side Diff: chrome/browser/hang_monitor/hang_crash_dump_win.cc

Issue 10272007: Generate crash dumps when a hung PPAPI plugin is force terminated. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/hang_monitor/hang_crash_dump_win.h ('k') | chrome/browser/hang_monitor/hung_window_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698