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

Unified Diff: components/crash/app/breakpad_win.cc

Issue 919893002: Replace handles that the handle closer closes with dummy Events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: only change win Created 5 years, 10 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
« components/crash/app/breakpad_win.h ('K') | « components/crash/app/breakpad_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/app/breakpad_win.cc
diff --git a/components/crash/app/breakpad_win.cc b/components/crash/app/breakpad_win.cc
index 1c3af66fd8013ad7de4abbfe2ffdd8e91ede3f0b..fb62b701ae4fe9eb731646ee0590a0a0418b072b 100644
--- a/components/crash/app/breakpad_win.cc
+++ b/components/crash/app/breakpad_win.cc
@@ -616,6 +616,17 @@ void InitCrashReporter(const std::string& process_type_switch) {
}
}
+void ShutdownCrashReporter() {
+ if (g_breakpad) {
+ delete g_breakpad;
+ g_breakpad = NULL;
+ }
+ if (g_dumphandler_no_crash) {
+ delete g_dumphandler_no_crash;
+ g_dumphandler_no_crash = NULL;
+ }
+}
+
// If the user has disabled crash reporting uploads and restarted Chrome, the
// restarted instance will still contain the pipe environment variable, which
// will allow the restarted process to still upload crash reports. This function
« components/crash/app/breakpad_win.h ('K') | « components/crash/app/breakpad_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698