Reland: Build Glic browser_tests on Linux

This revealed a number of other parts of the build that avoid compiling
on linux so this CL updates these to use the existing `enable_glic`
build flag.

Reland Note:
Relands https://crrev.com/c/6089193. Diff from PS1 to see changes to
originally landed CL.

Issue is that Wayland doesn't yet have an implementation for
GlobalShortcutListener which Glic CHECKs for. The fix for that was
landed in https://crrev.com/c/6100532

Cq-Include-Trybots: luci.chromium.try:linux-wayland-rel
Bug: 378141058
Change-Id: Ia333c69e7def99ea622fba30f9b87c8d54c7a9af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6094446
Reviewed-by: Nico Weber <[email protected]>
Commit-Queue: David Bokan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1398714}
NOKEYCHECK=True
GitOrigin-RevId: 97177ce01a8ac81e16821307cc613bc573de2343
diff --git a/grit_args.gni b/grit_args.gni
index 5cf2768..20b2ffa 100644
--- a/grit_args.gni
+++ b/grit_args.gni
@@ -5,6 +5,7 @@
 import("//build/config/chrome_build.gni")
 import("//build/config/chromeos/ui_mode.gni")
 import("//build/config/devtools.gni")
+import("//build/config/features.gni")
 import("//build/config/ui.gni")
 
 shared_intermediate_dir = rebase_path(root_gen_dir, root_build_dir)
@@ -38,6 +39,8 @@
   "use_titlecase=${is_mac}",
 
   "is_desktop_android=${is_desktop_android}",
+
+  "enable_glic=${enable_glic}",
 ]
 
 # Must match `enable_hidpi` in ui/base/ui_features.gni.