fix: SetCanonicalCookieAsync now takes the full CookieOptions

Refs: https://chromium-review.googlesource.com/c/chromium/src/+/1471244
This commit is contained in:
Samuel Attard 2019-03-21 20:21:36 -07:00
parent 7467e91880
commit 866cbb0147

View file

@ -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));
} }