Rewrite is_linux flag for base and build components.

This migrates is_linux (which is also set for chromeos) to explicitly
include chromeos as is_linux || is_chromeos in preparation for
separating those flags.

Bug: 1110266
Change-Id: I93991bfe0647a6b280b9fb9531474ae70f6c4cfa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2325766
Commit-Queue: Sean McAllister <smcallis@google.com>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#793509}
GitOrigin-RevId: deaa740d5532fa2f80bea90ba26a4cc235392627
diff --git a/gcc_toolchain.gni b/gcc_toolchain.gni
index 1c7bf7e..06854b7 100644
--- a/gcc_toolchain.gni
+++ b/gcc_toolchain.gni
@@ -32,7 +32,7 @@
 
 # When the arg is set via args.gn, it applies to all toolchains. In order to not
 # hit the assert in grit_rule.gni, explicitly disable for host toolchains.
-if (is_linux && target_os == "android") {
+if ((is_linux || is_chromeos) && target_os == "android") {
   enable_resource_whitelist_generation = false
 }