Skip to content

Commit

Permalink
Rename CefSettings.ProductVersion to CefSettings.UserAgentProduct
Browse files Browse the repository at this point in the history
This is a breaking change.

Resolves #3530
  • Loading branch information
amaitland committed Apr 30, 2021
1 parent 969b94c commit 0965261
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions CefSharp.Core.Runtime/CefSettingsBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ namespace CefSharp

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

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions CefSharp.Core/CefSettingsBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ public bool PackLoadingDisabled

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

/// <summary>
Expand Down

0 comments on commit 0965261

Please sign in to comment.