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

Unified Diff: chrome/common/child_process_logging.h

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.h
diff --git a/chrome/common/child_process_logging.h b/chrome/common/child_process_logging.h
index 6b68d8ce95a44b866a783fb0e1793207500270ed..7fe4dd56340d0420b232fe8c58f5063071141cc5 100644
--- a/chrome/common/child_process_logging.h
+++ b/chrome/common/child_process_logging.h
@@ -79,6 +79,15 @@ void SetActiveExtensions(const std::set<std::string>& extension_ids);
// Sets a number of views/tabs opened in this process.
void SetNumberOfViews(int number_of_views);
+// Sets whether the process should be forcibly crashed when it is exitted. This
rvargas (doing something else) 2012/03/21 03:13:45 nit: 'when it exits' ?
+// is used to intercept unexpected process terminations from calls to exit(),
+// abort(), _exit(), ExitProcess(), etc.
+//
+// To enable this, start by calling with true during startup. Unset it before
+// entering normal shutdown codepaths (like returning from main()). Shutdowns
+// initiated along any other codepath will result in a crash.
+void SetCrashOnExit(bool crash_on_exit);
+
// Sets the data on the gpu to send along with crash reports.
void SetGpuInfo(const content::GPUInfo& gpu_info);

Powered by Google App Engine
This is Rietveld 408576698