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

Unified Diff: third_party/crashpad/crashpad/handler/win/hanging_program.cc

Issue 2478633002: Update Crashpad to b47bf6c250c6b825dee1c5fbad9152c2c962e828 (Closed)
Patch Set: mac comment 2 Created 4 years, 1 month 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
Index: third_party/crashpad/crashpad/handler/win/hanging_program.cc
diff --git a/third_party/crashpad/crashpad/handler/win/hanging_program.cc b/third_party/crashpad/crashpad/handler/win/hanging_program.cc
index 877578e3972e167187ec9b963072373e7ae7b73b..638766343664200eaccaae7f3878d32ac165cf27 100644
--- a/third_party/crashpad/crashpad/handler/win/hanging_program.cc
+++ b/third_party/crashpad/crashpad/handler/win/hanging_program.cc
@@ -22,6 +22,9 @@
#include "client/crashpad_info.h"
DWORD WINAPI Thread1(LPVOID dummy) {
+ // We set the thread priority up by one as a hacky way to signal to the other
+ // test program that this is the thread we want to dump.
+ SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);
Sleep(INFINITE);
return 0;
}
@@ -56,11 +59,6 @@ int wmain(int argc, wchar_t* argv[]) {
return EXIT_FAILURE;
}
- if (!client.UseHandler()) {
- LOG(ERROR) << "UseHandler";
- return EXIT_FAILURE;
- }
-
// Make sure this module has a CrashpadInfo structure.
crashpad::CrashpadInfo* crashpad_info =
crashpad::CrashpadInfo::GetCrashpadInfo();

Powered by Google App Engine
This is Rietveld 408576698