Refactor boilerplate in cloud_policy_generated.cc
cloud_policy_generated.cc has lots of boilerplate - the same code repeated for each policy. This change moves most of the boilerplate into a function, GetPolicyLevel. Because the file is generated, the change must happen in the generator - generate_policy_source.py The diff in the generated file is visible internally at go/getpolicyleveldiff Bug: 852366 Change-Id: I9d6f4d3c211b79ad271504c9f32e7b11b7399a32 Reviewed-on: https://chromium-review.googlesource.com/1097318 Commit-Queue: A Olsen <olsen@chromium.org> Reviewed-by:Maksim Ivanov <emaxx@chromium.org> Reviewed-by:
Roman Sorokin <rsorokin@chromium.org> Cr-Commit-Position: refs/heads/master@{#566863}
Showing
Please register or sign in to comment