aboutsummaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-content_shell_app_shell__main__delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron7/files/patch-content_shell_app_shell__main__delegate.cc')
-rw-r--r--devel/electron7/files/patch-content_shell_app_shell__main__delegate.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron7/files/patch-content_shell_app_shell__main__delegate.cc b/devel/electron7/files/patch-content_shell_app_shell__main__delegate.cc
new file mode 100644
index 000000000000..dd8f8c90a8eb
--- /dev/null
+++ b/devel/electron7/files/patch-content_shell_app_shell__main__delegate.cc
@@ -0,0 +1,20 @@
+--- content/shell/app/shell_main_delegate.cc.orig 2019-12-12 12:39:41 UTC
++++ content/shell/app/shell_main_delegate.cc
+@@ -170,7 +170,7 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit
+
+ v8_crashpad_support::SetUp();
+ #endif
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ breakpad::SetFirstChanceExceptionHandler(v8::TryHandleWebAssemblyTrapPosix);
+ #endif
+ #if defined(OS_MACOSX)
+@@ -317,7 +317,7 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit
+ }
+
+ void ShellMainDelegate::PreSandboxStartup() {
+-#if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX))
++#if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD))
+ // Create an instance of the CPU class to parse /proc/cpuinfo and cache
+ // cpu_brand info.
+ base::CPU cpu_info;