Skip to content

Commit 6381ab2

Browse files
authored
Core - Add chrome_policy_id to CefSettings (#5227)
* Core - Add chrome_policy_id to CefSettings * Core - Update RefAssembly for ChromPolicyID in CefSettings.
1 parent 0b7d85b commit 6381ab2

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public CefSettingsBase() { }
109109
public string CachePath { get { throw null; } set { } }
110110
public CefSharp.Internals.CommandLineArgDictionary CefCommandLineArgs { get { throw null; } }
111111
public System.Collections.Generic.IEnumerable<CefSharp.CefCustomScheme> CefCustomSchemes { get { throw null; } }
112+
public string ChromePolicyId { get { throw null; } set { } }
112113
public bool CommandLineArgsDisabled { get { throw null; } set { } }
113114
public bool CookieableSchemesExcludeDefaults { get { throw null; } set { } }
114115
public string CookieableSchemesList { get { throw null; } set { } }

CefSharp.Core.Runtime/CefSettingsBase.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,15 @@ namespace CefSharp
359359
void set(bool value) { _cefSettings->cookieable_schemes_exclude_defaults = value; }
360360
}
361361

362+
/// <summary>
363+
/// The Chrome policy ID. This value is used to configure managed policies.
364+
/// </summary>
365+
property String^ ChromePolicyId
366+
{
367+
String^ get() { return StringUtils::ToClr(_cefSettings->chrome_policy_id); }
368+
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->chrome_policy_id, value); }
369+
}
370+
362371
/// <summary>
363372
/// Registers a custom scheme using the provided settings.
364373
/// </summary>

CefSharp.Core/CefSettingsBase.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,15 @@ public bool CookieableSchemesExcludeDefaults
368368
set { settings.CookieableSchemesExcludeDefaults = value; }
369369
}
370370

371+
/// <summary>
372+
/// The Chrome policy ID. This value is used to configure chrome enterprise policies.
373+
/// </summary>
374+
public string ChromePolicyId
375+
{
376+
get { return settings.ChromePolicyId; }
377+
set { settings.ChromePolicyId = value; }
378+
}
379+
371380
/// <summary>
372381
/// Registers a custom scheme using the provided settings.
373382
/// </summary>

0 commit comments

Comments
 (0)