Adding network_annotations to ChromeOS CQ to catch issues early on.

Checked with ash directory and now it can auto detect traffic annotation

Bug: 1232032
Change-Id: I795ad52d9134fedb7941d50319f10d26d6dc78dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3576835
Reviewed-by: Ben Pastene <[email protected]>
Reviewed-by: Jimmy Gong <[email protected]>
Commit-Queue: Baijun Zhu <[email protected]>
Reviewed-by: Nicolas Ouellet-Payeur <[email protected]>
Reviewed-by: Peter Marshall <[email protected]>
Reviewed-by: Andrew Grieve <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1005459}
diff --git a/BUILD.gn b/BUILD.gn
index c46cbf1..b67d3b42 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -474,6 +474,7 @@
       "//components/exo/wayland:wayland_client_compatibility_tests",
       "//components/session_manager/core",
       "//third_party/shell-encryption:shell_encryption_unittests",
+      "//tools/traffic_annotation/auditor:traffic_annotation_auditor",
       "//ui/chromeos:ui_chromeos_unittests",
     ]
   }
@@ -891,6 +892,16 @@
   }
 }
 
+if (is_chromeos_ash) {
+  group("traffic_annotation_auditor_dependencies") {
+    deps = [
+      "//chrome",
+      "//chromeos",
+      "//tools/traffic_annotation/summary:annotations_xml",
+    ]
+  }
+}
+
 if (is_android) {
   # On CQ, run the Traffic Annotation Auditor when a change affects one of these
   # targets.