<def-group>
  <definition class="compliance" id="chromium_whitelist_plugin_urls"  version="1">
    <metadata>
      <title>Configure Whitelisted Plugins For Use</title>
      <affected family="unix">
        <platform>Google Chromium Browser</platform>
      </affected>
      <description>URLs must be whitelisted for plugin use.</description>
    </metadata>
    <criteria>
      <criterion comment="Chromium whitelist plugin urls" test_ref="test_chromium_whitelist_plugin_urls" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="Chromium whitelist plugin urls" id="test_chromium_whitelist_plugin_urls" version="1">
    <ind:object object_ref="object_chromium_whitelist_plugin_urls" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_chromium_whitelist_plugin_urls" version="1">
    <ind:filepath operation="pattern match">^/etc/chromium/policies/managed/.*\.json$</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]+\"PluginsAllowedForUrls\"\:[\s]+\[\"(none|!*)\"\],</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
