Skip to content

Commit 0965261

Browse files
committed
Rename CefSettings.ProductVersion to CefSettings.UserAgentProduct
This is a breaking change. Resolves #3530
1 parent 969b94c commit 0965261

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CefSharp.Core.Runtime/CefSettingsBase.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ namespace CefSharp
277277

278278
/// <summary>
279279
/// Value that will be inserted as the product portion of the default User-Agent string. If empty the Chromium product version
280-
/// will be used. If UserAgent is specified this value will be ignored. Also configurable using the "product-version" command-
280+
/// will be used. If UserAgent is specified this value will be ignored. Also configurable using the "user-agent-product" command-
281281
/// line switch.
282282
/// </summary>
283-
property String^ ProductVersion
283+
property String^ UserAgentProduct
284284
{
285-
String^ get() { return StringUtils::ToClr(_cefSettings->product_version); }
286-
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->product_version, value); }
285+
String^ get() { return StringUtils::ToClr(_cefSettings->user_agent_product); }
286+
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->user_agent_product, value); }
287287
}
288288

289289
/// <summary>

CefSharp.Core/CefSettingsBase.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,13 @@ public bool PackLoadingDisabled
244244

245245
/// <summary>
246246
/// Value that will be inserted as the product portion of the default User-Agent string. If empty the Chromium product version
247-
/// will be used. If UserAgent is specified this value will be ignored. Also configurable using the "product-version" command-
247+
/// will be used. If UserAgent is specified this value will be ignored. Also configurable using the "user-agent-product" command-
248248
/// line switch.
249249
/// </summary>
250-
public string ProductVersion
250+
public string UserAgentProduct
251251
{
252-
get { return settings.ProductVersion; }
253-
set { settings.ProductVersion = value; }
252+
get { return settings.UserAgentProduct; }
253+
set { settings.UserAgentProduct = value; }
254254
}
255255

256256
/// <summary>

0 commit comments

Comments
 (0)