Fix repeated "-Wunknown-pragmas -Wno-error=unknown-pragmas".

As gn only deduplicate the configs but not the configs' flags, the
flags "-Wunknown-pragmas -Wno-error=unknown-pragmas" where repeated
for each dependent target using the "grit" template. Instead add a
single config adding those flag and reference it from the "grit"
template to avoid the duplicates.

BUG=None

Review-Url: https://codereview.chromium.org/2717493002
Cr-Original-Commit-Position: refs/heads/master@{#452543}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f673f4c59c985aa8ddfab2b3821c42af25d915e4
1 file changed