blob: 4bb184631dc8a00307232a44bf0ca1f104fd264b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- content/shell/app/shell_main_delegate.cc.orig 2021-01-07 00:36:33 UTC
+++ content/shell/app/shell_main_delegate.cc
@@ -186,7 +186,7 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit
void ShellMainDelegate::PreSandboxStartup() {
#if defined(ARCH_CPU_ARM_FAMILY) && \
- (defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS))
+ (defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD))
// Create an instance of the CPU class to parse /proc/cpuinfo and cache
// cpu_brand info.
base::CPU cpu_info;
@@ -195,7 +195,7 @@ void ShellMainDelegate::PreSandboxStartup() {
// Disable platform crash handling and initialize the crash reporter, if
// requested.
// TODO(crbug.com/753619): Implement crash reporter integration for Fuchsia.
-#if !defined(OS_FUCHSIA)
+#if !defined(OS_FUCHSIA) && !defined(OS_BSD)
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableCrashReporter)) {
std::string process_type =
@@ -211,7 +211,7 @@ void ShellMainDelegate::PreSandboxStartup() {
#endif
}
}
-#endif // !defined(OS_FUCHSIA)
+#endif // !defined(OS_FUCHSIA) && !defined(OS_BSD)
crash_reporter::InitializeCrashKeys();
|