Line 0
Link Here
|
|
|
1 |
--- headless/lib/headless_content_main_delegate.cc.orig 2017-05-09 19:02:47 UTC |
2 |
+++ headless/lib/headless_content_main_delegate.cc |
3 |
@@ -147,7 +147,7 @@ void HeadlessContentMainDelegate::InitCr |
4 |
g_headless_crash_client.Pointer()->set_crash_dumps_dir( |
5 |
browser_->options()->crash_dumps_dir); |
6 |
|
7 |
-#if !defined(OS_MACOSX) |
8 |
+#if !defined(OS_MACOSX) && !defined(OS_BSD) |
9 |
if (!browser_->options()->enable_crash_reporter) { |
10 |
DCHECK(!breakpad::IsCrashReporterEnabled()); |
11 |
return; |
12 |
@@ -156,7 +156,7 @@ void HeadlessContentMainDelegate::InitCr |
13 |
if (process_type != switches::kZygoteProcess) |
14 |
breakpad::InitCrashReporter(process_type); |
15 |
#endif // defined(HEADLESS_USE_BREAKPAD) |
16 |
-#endif // !defined(OS_MACOSX) |
17 |
+#endif // !defined(OS_MACOSX) && !defined(OS_BSD) |
18 |
} |
19 |
|
20 |
void HeadlessContentMainDelegate::PreSandboxStartup() { |
21 |
@@ -170,7 +170,7 @@ void HeadlessContentMainDelegate::PreSan |
22 |
if (command_line.HasSwitch(switches::kEnableLogging)) |
23 |
InitLogging(command_line); |
24 |
#endif |
25 |
-#if !defined(OS_MACOSX) |
26 |
+#if !defined(OS_MACOSX) && !defined(OS_BSD) |
27 |
InitCrashReporter(command_line); |
28 |
#endif |
29 |
InitializeResourceBundle(); |
30 |
@@ -202,7 +202,7 @@ int HeadlessContentMainDelegate::RunProc |
31 |
return 0; |
32 |
} |
33 |
|
34 |
-#if !defined(OS_MACOSX) && defined(OS_POSIX) && !defined(OS_ANDROID) |
35 |
+#if !defined(OS_MACOSX) && defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_BSD) |
36 |
void HeadlessContentMainDelegate::ZygoteForked() { |
37 |
const base::CommandLine& command_line( |
38 |
*base::CommandLine::ForCurrentProcess()); |