Do not compile frame_analyzer_host during Chromium builds.

Bug: webrtc:9665
Change-Id: I42ff7a02664c3552ea31972a84f1d7d18cab13ac
No-Try: True
Reviewed-on: https://webrtc-review.googlesource.com/100805
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24765}
diff --git a/rtc_tools/BUILD.gn b/rtc_tools/BUILD.gn
index dcee868..ae80585 100644
--- a/rtc_tools/BUILD.gn
+++ b/rtc_tools/BUILD.gn
@@ -107,15 +107,17 @@
   ]
 }
 
-action("frame_analyzer_host") {
-  script = "//tools_webrtc/executable_host_build.py"
-  outputs = [
-    "${root_out_dir}/frame_analyzer_host",
-  ]
-  args = [
-    "--executable_name",
-    "frame_analyzer",
-  ]
+if (!build_with_chromium && !build_with_mozilla) {
+  action("frame_analyzer_host") {
+    script = "//tools_webrtc/executable_host_build.py"
+    outputs = [
+      "${root_out_dir}/frame_analyzer_host",
+    ]
+    args = [
+      "--executable_name",
+      "frame_analyzer",
+    ]
+  }
 }
 
 # Only expose the targets needed by Chromium (e.g. frame_analyzer) to avoid