<def-group>
  <definition class="compliance" id="chromium_default_search_provider"  version="1">
    <metadata>
      <title>Enable Default Search Provider</title>
      <affected family="unix">
        <platform>Google Chromium Browser</platform>
      </affected>
      <description>Default search provider must be enabled.</description>
    </metadata>
    <criteria>
      <criterion comment="Chromium enable default search provider" test_ref="test_chromium_default_search_provider" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="Chromium enable default search provider" id="test_chromium_default_search_provider" version="1">
    <ind:object object_ref="object_chromium_default_search_provider" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_chromium_default_search_provider" version="1">
    <ind:filepath operation="pattern match">/etc/chromium/policies/managed/.*\.json</ind:filepath>
    <ind:pattern operation="pattern match">^\{([^\n]*\n+)+[\s]+\"DefaultSearchProviderEnabled\"\:[\s]+true,</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
