Replace ternary with logical expressions in //components

Convert, e.g.
  x ? y : false -> x && y
  x ? false : y -> !x && y
  x ? y : true - > !x || y
  x ? true : y -> x || y

Bug: 416294715
Change-Id: I5b5cd2a2fffdc74ff4711352f0b80b28b168ff83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6898575
Reviewed-by: Sylvain Defresne <[email protected]>
Commit-Queue: Ho Cheung <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1508281}
NOKEYCHECK=True
GitOrigin-RevId: 6cdb114695626c964e5ee1cc4d8a9508639beb01
1 file changed