Skip to content

Commit dd15d9e

Browse files
committed
Review feedback 5: Updated CreateCookie and CopyCookie
1 parent b579737 commit dd15d9e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

specs/CookieManagement.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ void SetRememberedUserId(string id)
209209
{
210210
CoreWebView2CookieManager cookieManager = webView.CoreWebView2.CookieManager;
211211
CoreWebView2Cookie cookie =
212-
cookieManager.CreateCookieWithDetails(
212+
cookieManager.CreateCookie(
213213
"last_userid", id, "contoso.com", "/");
214214
cookie.IsSecure = true; // disallow http://contoso.com/
215215
cookieManager.AddOrUpdateCookie(cookie);
@@ -369,7 +369,7 @@ interface ICoreWebView2CookieManager : IUnknown {
369369
[out, retval] ICoreWebView2Cookie** cookie);
370370
371371
/// Creates a cookie whose params matches those of the specified cookie.
372-
HRESULT CreateCookie(
372+
HRESULT CopyCookie(
373373
[in] ICoreWebView2Cookie* cookieParam,
374374
[out, retval] ICoreWebView2Cookie** cookie);
375375
@@ -466,10 +466,10 @@ namespace Microsoft.Web.WebView2.Core
466466
/// One can set other optional properties after cookie creation.
467467
/// This only creates a cookie object and it is not added to the cookie
468468
/// manager until you call AddOrUpdateCookie.
469-
CoreWebView2Cookie CreateCookieWithDetails(String name, String value, String Domain, String Path);
469+
CoreWebView2Cookie CreateCookie(String name, String value, String Domain, String Path);
470470

471471
/// Creates a cookie whose params matches those of the specified cookie.
472-
CoreWebView2Cookie CreateCookie(CoreWebView2 cookie);
472+
CoreWebView2Cookie CopyCookie(CoreWebView2 cookie);
473473

474474
/// Gets a list of cookies matching the specific URI.
475475
/// If uri is empty string or null, all cookies under the same profile are

0 commit comments

Comments
 (0)