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

Unified Diff: chrome/common/child_process_logging_win.cc

Issue 9803002: [windows] Make calls to exit(), _exit(), abort(), and ExitProcess() from the renderer process resul… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/common/child_process_logging_win.cc
diff --git a/chrome/common/child_process_logging_win.cc b/chrome/common/child_process_logging_win.cc
index b67d66a9bde3a7b1f9d96f3f6efb3d86be683924..084386dfadccd98d16c156f407463145e79880b2 100644
--- a/chrome/common/child_process_logging_win.cc
+++ b/chrome/common/child_process_logging_win.cc
@@ -7,10 +7,11 @@
#include <windows.h>
#include "base/command_line.h"
-#include "base/string_util.h"
#include "base/string_number_conversions.h"
+#include "base/string_util.h"
#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
+#include "base/win/dllmain.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/installer/util/google_update_settings.h"
#include "content/public/common/gpu_info.h"
@@ -178,4 +179,8 @@ void SetNumberOfViews(int number_of_views) {
(set_number_of_views)(number_of_views);
}
+void SetCrashOnExit(bool crash_on_exit) {
+ base::win::DLLMain_SetCrashOnProcessDetach(crash_on_exit);
+}
+
} // namespace child_process_logging

Powered by Google App Engine
This is Rietveld 408576698