From 09652614bd65408ee255efcbf9db7048df775182 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 30 Apr 2021 11:35:29 +1000 Subject: [PATCH] Rename CefSettings.ProductVersion to CefSettings.UserAgentProduct This is a breaking change. Resolves #3530 --- CefSharp.Core.Runtime/CefSettingsBase.h | 8 ++++---- CefSharp.Core/CefSettingsBase.cs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CefSharp.Core.Runtime/CefSettingsBase.h b/CefSharp.Core.Runtime/CefSettingsBase.h index 6532fbeee..132ea6ee5 100644 --- a/CefSharp.Core.Runtime/CefSettingsBase.h +++ b/CefSharp.Core.Runtime/CefSettingsBase.h @@ -277,13 +277,13 @@ namespace CefSharp /// /// 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. /// - 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); } } /// diff --git a/CefSharp.Core/CefSettingsBase.cs b/CefSharp.Core/CefSettingsBase.cs index 15db9a1ba..a6e7e3e32 100644 --- a/CefSharp.Core/CefSettingsBase.cs +++ b/CefSharp.Core/CefSettingsBase.cs @@ -244,13 +244,13 @@ namespace CefSharp /// /// 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. /// - public string ProductVersion + public string UserAgentProduct { - get { return settings.ProductVersion; } - set { settings.ProductVersion = value; } + get { return settings.UserAgentProduct; } + set { settings.UserAgentProduct = value; } } ///