From 55b4bd878bfea83c80d9cc4299795d59c10d4784 Mon Sep 17 00:00:00 2001 From: strau Date: Wed, 25 Mar 2026 09:26:53 +0100 Subject: [PATCH] Core - Add chrome_policy_id to CefSettings --- CefSharp.Core.Runtime/CefSettingsBase.h | 9 +++++++++ CefSharp.Core/CefSettingsBase.cs | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/CefSharp.Core.Runtime/CefSettingsBase.h b/CefSharp.Core.Runtime/CefSettingsBase.h index 6d049095fc..c8b3b85e5f 100644 --- a/CefSharp.Core.Runtime/CefSettingsBase.h +++ b/CefSharp.Core.Runtime/CefSettingsBase.h @@ -359,6 +359,15 @@ namespace CefSharp void set(bool value) { _cefSettings->cookieable_schemes_exclude_defaults = value; } } + /// + /// The Chrome policy ID. This value is used to configure managed policies. + /// + property String^ ChromePolicyId + { + String^ get() { return StringUtils::ToClr(_cefSettings->chrome_policy_id); } + void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->chrome_policy_id, value); } + } + /// /// Registers a custom scheme using the provided settings. /// diff --git a/CefSharp.Core/CefSettingsBase.cs b/CefSharp.Core/CefSettingsBase.cs index 3c8870e1a9..f53bead39f 100644 --- a/CefSharp.Core/CefSettingsBase.cs +++ b/CefSharp.Core/CefSettingsBase.cs @@ -368,6 +368,15 @@ public bool CookieableSchemesExcludeDefaults set { settings.CookieableSchemesExcludeDefaults = value; } } + /// + /// The Chrome policy ID. This value is used to configure chrome enterprise policies. + /// + public string ChromePolicyId + { + get { return settings.ChromePolicyId; } + set { settings.ChromePolicyId = value; } + } + /// /// Registers a custom scheme using the provided settings. ///