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)) { |