fix: SetCanonicalCookieAsync now takes the full CookieOptions
Refs: https://chromium-review.googlesource.com/c/chromium/src/+/1471244
This commit is contained in:
parent
7467e91880
commit
866cbb0147
1 changed files with 5 additions and 1 deletions
|
@ -303,8 +303,12 @@ void SetCookieOnIO(scoped_refptr<net::URLRequestContextGetter> getter,
|
||||||
EXCLUDE_FAILURE_TO_STORE);
|
EXCLUDE_FAILURE_TO_STORE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
net::CookieOptions options;
|
||||||
|
if (http_only) {
|
||||||
|
options.set_include_httponly();
|
||||||
|
}
|
||||||
GetCookieStore(getter)->SetCanonicalCookieAsync(
|
GetCookieStore(getter)->SetCanonicalCookieAsync(
|
||||||
std::move(canonical_cookie), url.scheme(), http_only,
|
std::move(canonical_cookie), url.scheme(), options,
|
||||||
std::move(completion_callback));
|
std::move(completion_callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue