$OpenBSD: patch-chrome_app_chrome_main_cc,v 1.2 2016/02/15 18:07:52 robert Exp $
--- chrome/app/chrome_main.cc.orig.port	Sun Dec 20 19:33:32 2015
+++ chrome/app/chrome_main.cc	Wed Feb 10 07:55:35 2016
@@ -3,6 +3,8 @@
 // found in the LICENSE file.
 
 #include "chrome/app/chrome_main_delegate.h"
+#include "base/command_line.h"
+#include "content/public/common/content_switches.h"
 
 #include "content/public/app/content_main.h"
 #if !defined(CHROME_MULTIPLE_DLL_CHILD)
@@ -32,7 +34,11 @@ 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)
 {
-	iridium::log_url_request(caller, 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 */
 		return;
