aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-chrome_app_chrome__main__delegate.cc')
-rw-r--r--www/chromium/files/patch-chrome_app_chrome__main__delegate.cc65
1 files changed, 65 insertions, 0 deletions
diff --git a/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc b/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc
new file mode 100644
index 000000000000..3a43a67f2470
--- /dev/null
+++ b/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc
@@ -0,0 +1,65 @@
+--- chrome/app/chrome_main_delegate.cc.orig 2016-05-11 19:02:13 UTC
++++ chrome/app/chrome_main_delegate.cc
+@@ -112,7 +112,7 @@
+ #include "ui/base/x/x11_util.h"
+ #endif
+
+-#if defined(OS_POSIX) && !defined(OS_MACOSX)
++#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD)
+ #include "components/crash/content/app/breakpad_linux.h"
+ #endif
+
+@@ -552,7 +552,7 @@ bool ChromeMainDelegate::BasicStartupCom
+ std::string format_str =
+ command_line.GetSwitchValueASCII(switches::kDiagnosticsFormat);
+ if (format_str == "machine") {
+- format = diagnostics::DiagnosticsWriter::MACHINE;
++ format = diagnostics::DiagnosticsWriter::THEMACHINE;
+ } else if (format_str == "log") {
+ format = diagnostics::DiagnosticsWriter::LOG;
+ } else {
+@@ -602,7 +602,7 @@ bool ChromeMainDelegate::BasicStartupCom
+ std::string format_str =
+ command_line.GetSwitchValueASCII(switches::kDiagnosticsFormat);
+ if (format_str == "machine") {
+- format = diagnostics::DiagnosticsWriter::MACHINE;
++ format = diagnostics::DiagnosticsWriter::THEMACHINE;
+ } else if (format_str == "human") {
+ format = diagnostics::DiagnosticsWriter::HUMAN;
+ } else {
+@@ -693,7 +693,7 @@ void ChromeMainDelegate::PreSandboxStart
+ std::string process_type =
+ command_line.GetSwitchValueASCII(switches::kProcessType);
+
+-#if defined(OS_POSIX)
++#if defined(OS_POSIX) && !defined(OS_BSD)
+ crash_reporter::SetCrashReporterClient(g_chrome_crash_client.Pointer());
+ #endif
+
+@@ -814,7 +814,7 @@ void ChromeMainDelegate::PreSandboxStart
+ chrome::InitializePDF();
+ #endif
+
+-#if defined(OS_POSIX) && !defined(OS_MACOSX)
++#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD)
+ // Zygote needs to call InitCrashReporter() in RunZygote().
+ if (process_type != switches::kZygoteProcess) {
+ #if defined(OS_ANDROID)
+@@ -832,7 +832,7 @@ void ChromeMainDelegate::PreSandboxStart
+ breakpad::InitCrashReporter(process_type);
+ #endif // defined(OS_ANDROID)
+ }
+-#endif // defined(OS_POSIX) && !defined(OS_MACOSX)
++#endif // defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_BSD)
+
+ // After all the platform Breakpads have been initialized, store the command
+ // line for crash reporting.
+@@ -942,7 +942,7 @@ bool ChromeMainDelegate::DelaySandboxIni
+ #endif
+ return process_type == switches::kRelauncherProcess;
+ }
+-#elif defined(OS_POSIX) && !defined(OS_ANDROID)
++#elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_BSD)
+ void ChromeMainDelegate::ZygoteStarting(
+ ScopedVector<content::ZygoteForkDelegate>* delegates) {
+ #if defined(OS_CHROMEOS)