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

[
  {
    "os": [
      "win",
      "linux",
      "mac"
    ],
    "policy_pref_mapping_tests": [
      {
        "policies": {
          "GenAiDefaultSettings": 0
        },
        "prefs": {
          "optimization_guide.model_execution.compose_enterprise_policy_allowed": {
            "value": 0
          },
          "optimization_guide.model_execution.tab_organization_enterprise_policy_allowed": {
            "value": 0
          },
          "optimization_guide.model_execution.wallpaper_search_enterprise_policy_allowed": {
            "value": 0
          },
          "devtools.gen_ai_settings": {
            "value": 0
          },
          "optimization_guide.model_execution.history_search_enterprise_policy_allowed": {
            "value": 0
          }
        }
      },
      {
        "policies": {
          "GenAiDefaultSettings": 1
        },
        "prefs": {
          "optimization_guide.model_execution.compose_enterprise_policy_allowed": {
            "value": 1
          },
          "optimization_guide.model_execution.tab_organization_enterprise_policy_allowed": {
            "value": 1
          },
          "optimization_guide.model_execution.wallpaper_search_enterprise_policy_allowed": {
            "value": 1
          },
          "devtools.gen_ai_settings": {
            "value": 1
          },
          "optimization_guide.model_execution.history_search_enterprise_policy_allowed": {
            "value": 1
          }
        }
      },
      {
        "policies": {
          "GenAiDefaultSettings": 2
        },
        "prefs": {
          "optimization_guide.model_execution.compose_enterprise_policy_allowed": {
            "value": 2
          },
          "optimization_guide.model_execution.tab_organization_enterprise_policy_allowed": {
            "value": 2
          },
          "optimization_guide.model_execution.wallpaper_search_enterprise_policy_allowed": {
            "value": 2
          },
          "devtools.gen_ai_settings": {
            "value": 2
          },
          "optimization_guide.model_execution.history_search_enterprise_policy_allowed": {
            "value": 2
          }
        }
      },
      {
        "policies": {},
        "prefs": {
          "optimization_guide.model_execution.compose_enterprise_policy_allowed": {
            "default_value": 0
          },
          "optimization_guide.model_execution.tab_organization_enterprise_policy_allowed": {
            "default_value": 0
          },
          "optimization_guide.model_execution.wallpaper_search_enterprise_policy_allowed": {
            "default_value": 0
          },
          "devtools.gen_ai_settings": {
            "default_value": 0
          },
          "optimization_guide.model_execution.history_search_enterprise_policy_allowed": {
            "default_value": 0
          }
        }
      },
      {
        "policies": {
          "GenAiDefaultSettings": 1,
          "HelpMeWriteSettings": 2,
          "TabOrganizerSettings": 2,
          "CreateThemesSettings": 2,
          "DevToolsGenAiSettings": 2,
          "HistorySearchSettings": 2
        },
        "prefs": {
          "optimization_guide.model_execution.compose_enterprise_policy_allowed": {
            "value": 2
          },
          "optimization_guide.model_execution.tab_organization_enterprise_policy_allowed": {
            "value": 2
          },
          "optimization_guide.model_execution.wallpaper_search_enterprise_policy_allowed": {
            "value": 2
          },
          "devtools.gen_ai_settings": {
            "value": 2
          },
          "optimization_guide.model_execution.history_search_enterprise_policy_allowed": {
            "value": 2
          }
        }
      }
    ]
  },
  {
    "note": "The default does not apply on Chrome OS yet because of default_for_enterprise_users. This will be updated in an upcoming change.",
    "os": [
      "chromeos_lacros",
      "chromeos_ash"
    ],
    "policy_pref_mapping_tests": [
      {
        "policies": {
          "GenAiDefaultSettings": 0
        },
        "prefs": {
          "optimization_guide.model_execution.compose_enterprise_policy_allowed": {
            "value": 1
          },
          "optimization_guide.model_execution.tab_organization_enterprise_policy_allowed": {
            "value": 1
          },
          "optimization_guide.model_execution.wallpaper_search_enterprise_policy_allowed": {
            "value": 1
          },
          "devtools.gen_ai_settings": {
            "value": 1
          },
          "optimization_guide.model_execution.history_search_enterprise_policy_allowed": {
            "value": 1
          }
        }
      },
      {
        "policies": {},
        "prefs": {
          "optimization_guide.model_execution.compose_enterprise_policy_allowed": {
            "value": 1
          },
          "optimization_guide.model_execution.tab_organization_enterprise_policy_allowed": {
            "value": 1
          },
          "optimization_guide.model_execution.wallpaper_search_enterprise_policy_allowed": {
            "value": 1
          },
          "devtools.gen_ai_settings": {
            "value": 1
          },
          "optimization_guide.model_execution.history_search_enterprise_policy_allowed": {
            "value": 1
          }
        }
      }
    ]
  }
]