[Build] Make optimize_for_size assignable via args.gn.

Previously the build variable optimize_for_size was hard-coded as

  optimize_for_size = is_android || is_chromecast || is_fuchsia || is_ios

This CL makes the flag assignable via args.gn (with the above as
default), to support builds for high-end devices.

Bug: 1291808
Change-Id: Icfe4faf97b9ab92e361a2ea32628f90664153e22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3667786
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1007429}
NOKEYCHECK=True
GitOrigin-RevId: 67f5e400bdd9526a3686e103a55775b97b9eb8b0
1 file changed