chromium/components/policy/test/data/pref_mapping/ClearBrowsingDataOnExitList.json

[
  {
    "os": [
      "win",
      "linux",
      "mac",
      "chromeos_ash",
      "chromeos_lacros",
      "fuchsia"
    ],
    "policy_pref_mapping_tests": [
      {
        "note": "Default value (no policies set).",
        "prefs": {
          "browser.clear_data.clear_on_exit": {
            "default_value": []
          }
        }
      },
      {
        "note": "Simple value when SyncDisabled is true.",
        "policies": {
          "ClearBrowsingDataOnExitList": [
            "browsing_history"
          ],
          "SyncDisabled": true
        },
        "prefs": {
          "browser.clear_data.clear_on_exit": {
            "value": [
              "browsing_history"
            ]
          }
        }
      },
      {
        "note": "Simple value when SyncDisabled is false.",
        "policies": {
          "ClearBrowsingDataOnExitList": [
            "autofill"
          ],
          "SyncDisabled": false
        },
        "prefs": {
          "browser.clear_data.clear_on_exit": {
            "value": [
              "autofill"
            ]
          },
          "sync.autofill": {
            "value": false
          }
        }
      }
    ]
  }
]