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

Unified Diff: chrome/app/breakpad_win.cc

Issue 6697004: Add an exception wrapper to the WindowProc functions so... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/app/breakpad_win.cc
===================================================================
--- chrome/app/breakpad_win.cc (revision 78053)
+++ chrome/app/breakpad_win.cc (working copy)
@@ -438,6 +438,18 @@
flags, exit_now);
}
+// Crashes the process after generating a dump for the provided exception. Note
+// that the crash reporter should be initialized before calling this function
+// for it to do anything.
cpu_(ooo_6.6-7.5) 2011/03/16 00:09:22 should it be: __declspec(dllexport) int __cdecl Cr
rvargas (doing something else) 2011/03/16 00:25:07 Extern "C" is fine. On 2011/03/16 00:09:22, cpu w
+extern "C" int __declspec(dllexport) CrashForException(
+ EXCEPTION_POINTERS* info) {
+ if (g_breakpad) {
+ g_breakpad->WriteMinidumpForException(info);
+ ::ExitProcess(ResultCodes::KILLED);
+ }
+ return EXCEPTION_CONTINUE_SEARCH;
+}
+
// Determine whether configuration management allows loading the crash reporter.
// Since the configuration management infrastructure is not initialized at this
// point, we read the corresponding registry key directly. The return status

Powered by Google App Engine
This is Rietveld 408576698