$OpenBSD: patch-chrome_app_chrome_main_cc,v 1.4 2016/04/27 12:46:16 robert Exp $
--- chrome/app/chrome_main.cc.orig.port	Tue Apr 26 16:20:04 2016
+++ chrome/app/chrome_main.cc	Wed Apr 27 11:11:15 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 "build/build_config.h"
 #include "chrome/common/features.h"
@@ -39,7 +41,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;
