$OpenBSD: patch-chrome_app_chrome_main_cc,v 1.10 2018/05/04 07:14:57 robert Exp $

Index: chrome/app/chrome_main.cc
--- chrome/app/chrome_main.cc.orig
+++ chrome/app/chrome_main.cc
@@ -50,6 +50,10 @@ int ChromeMain(int argc, const char** argv);
 #if !defined(CHROME_MULTIPLE_DLL_CHILD)
 static void trace_url_request(const std::string &caller, const GURL &url)
 {
+        base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+        if (!command_line->HasSwitch(switches::kTrk))
+                return;
+
 	iridium::log_url_request(caller, url);
 	if (url.scheme() != url::kTraceScheme)
 		/* Do not show infobar for non-trk URLs */
@@ -106,7 +110,7 @@ int ChromeMain(int argc, const char** argv) {
   ALLOW_UNUSED_LOCAL(command_line);
 
   // Chrome-specific process modes.
-#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN)
+#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD)
   if (command_line->HasSwitch(switches::kHeadless)) {
 #if defined(OS_MACOSX)
     SetUpBundleOverrides();
