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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 2885053005: Give v8 a chance to handle signals (Closed)
Patch Set: Rebasing Created 3 years, 5 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
« no previous file with comments | « chrome/app/BUILD.gn ('k') | components/crash/content/app/breakpad_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index c382e538c192aacddd85db989c2be70367e80152..6c825d7c38534b96d55c7bcb66439af98874533e 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -138,6 +138,7 @@
#if defined(OS_POSIX) && !defined(OS_MACOSX)
#include "components/crash/content/app/breakpad_linux.h"
+#include "v8/include/v8.h"
#endif
#if defined(OS_LINUX)
@@ -570,6 +571,9 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exit_code) {
#if defined(OS_WIN) && !defined(CHROME_MULTIPLE_DLL_BROWSER)
v8_breakpad_support::SetUp();
#endif
+#if defined(OS_LINUX) && !defined(OS_ANDROID)
+ breakpad::SetFirstChanceExceptionHandler(v8::V8::TryHandleSignal);
+#endif
#if defined(OS_POSIX)
if (HandleVersionSwitches(command_line)) {
« no previous file with comments | « chrome/app/BUILD.gn ('k') | components/crash/content/app/breakpad_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698