Speculatively fix chromium roll

Follow-up to aosp/1217305 that broke the
roll with https://chromium-review.googlesource.com/c/chromium/src/+/2021964

Change-Id: Ia426771c8c6cec4207570db796d10ff3dc50df1c
diff --git a/gn/perfetto_unittests.gni b/gn/perfetto_unittests.gni
index ca956bc..84467e6 100644
--- a/gn/perfetto_unittests.gni
+++ b/gn/perfetto_unittests.gni
@@ -21,9 +21,12 @@
   "src/protozero:unittests",
   "src/tracing/core:unittests",
   "src/profiling:unittests",
-  "src/tracing/test:tracing_integration_test",
 ]
 
+if (enable_perfetto_ipc) {
+  perfetto_unittests_targets += [ "src/tracing/test:tracing_integration_test" ]
+}
+
 if (enable_perfetto_tools && current_toolchain == host_toolchain) {
   perfetto_unittests_targets += [ "tools/ftrace_proto_gen:unittests" ]
 }