27 lines
962 B
Plaintext
27 lines
962 B
Plaintext
$OpenBSD: patch-chrome_app_chrome_main_cc,v 1.5 2016/10/27 18:30:40 robert Exp $
|
|
--- chrome/app/chrome_main.cc.orig.port Thu Oct 27 14:43:34 2016
|
|
+++ chrome/app/chrome_main.cc Thu Oct 27 20:19:45 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,12 @@ 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;
|