Files
brave-core/components/brave_policy
Kyle Hickinson 6f8c76c892 [iOS] [Origin] Initialize policy manager before profile creation (#36586)
This fixes a deadlock in which the Profile never completes its initialization so the app never shows the browser window
2026-05-20 23:09:40 -04:00
..

There are 2 types of policy providers.

  • BraveBrowserPolicyProvider: There is only one of these providers and it manages policies that are stored globally in local state.
  • BraveProfilePolicyProvider: There is one of these providers per profile and it manages policies that are stored in profile prefs.

Policies are defined in components/policy/resources/templates/policy_definitions/BraveSoftware/ and the YAML file has a per_profile attribute which associates it accordingly to the browser or profile provider. Both of these providers will be used for Brave Origin, but also for other work within Brave.