• Pavol Marko's avatar
    generate_policy_source.py: Support --all-chrome-versions · cdd64f0b
    Pavol Marko authored
    Support generating policy sources from policy_templates.json without
    version restrictions. This is useful for testing where we may want to
    set policies that are not yet supported or are not supported anymore.
    
      python components/policy/tools/generate_policy_source.py \
        --policy-templates-file=components/policy/resources/policy_templates.json \
        --target-platform=chromeos --chrome-version-file=chrome/VERSION \
        --policy-constants-source=test.cc
    and
      python components/policy/tools/generate_policy_source.py \
        --policy-templates-file=components/policy/resources/policy_templates.json \
        --target-platform=chromeos --all-chrome-versions \
        --policy-constants-source=test2.cc
    then diff test.cc test2.cc
    
    Bug: 976424
    Test: Run
    Change-Id: I3d0b7a0676ba771aec06ff7df0465e3b9539fd62
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1686668
    Commit-Queue: Pavol Marko <pmarko@chromium.org>
    Reviewed-by: default avatarLutz Justen <ljusten@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#686588}
    cdd64f0b
generate_policy_source.py 62.8 KB