mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 11:57:48 -03:00
Update url_request_http_job.cc
This commit is contained in:
parent
4f36cb0881
commit
37213bb75c
1 changed files with 4 additions and 8 deletions
|
@ -591,16 +591,14 @@ void URLRequestHttpJob::AddCookieHeaderAndStart() {
|
|||
cookie_store->cookie_access_delegate();
|
||||
|
||||
bool is_in_nontrivial_first_party_set =
|
||||
delegate && delegate->IsInNontrivialFirstPartySet(request_site);
|
||||
delegate && delegate->FindFirstPartySetOwner(request_site).has_value();
|
||||
CookieOptions options = CreateCookieOptions(
|
||||
same_site_context, request_->same_party_context(),
|
||||
request_->isolation_info(), is_in_nontrivial_first_party_set);
|
||||
|
||||
UMA_HISTOGRAM_ENUMERATION(
|
||||
"Cookie.FirstPartySetsContextType.HTTP.Read",
|
||||
net::cookie_util::ComputeFirstPartySetsContextType(
|
||||
request_site, request_->isolation_info(), delegate,
|
||||
request_->force_ignore_top_frame_party_for_cookies()));
|
||||
request_->same_party_context().first_party_sets_context_type());
|
||||
|
||||
cookie_store->GetCookieListWithOptionsAsync(
|
||||
request_->url(), options,
|
||||
|
@ -759,16 +757,14 @@ void URLRequestHttpJob::SaveCookiesAndNotifyHeadersComplete(int result) {
|
|||
net::SchemefulSite request_site(request_->url());
|
||||
|
||||
bool is_in_nontrivial_first_party_set =
|
||||
delegate && delegate->IsInNontrivialFirstPartySet(request_site);
|
||||
delegate && delegate->FindFirstPartySetOwner(request_site).has_value();
|
||||
CookieOptions options = CreateCookieOptions(
|
||||
same_site_context, request_->same_party_context(),
|
||||
request_->isolation_info(), is_in_nontrivial_first_party_set);
|
||||
|
||||
UMA_HISTOGRAM_ENUMERATION(
|
||||
"Cookie.FirstPartySetsContextType.HTTP.Write",
|
||||
net::cookie_util::ComputeFirstPartySetsContextType(
|
||||
request_site, request_->isolation_info(), delegate,
|
||||
request_->force_ignore_top_frame_party_for_cookies()));
|
||||
request_->same_party_context().first_party_sets_context_type());
|
||||
|
||||
// Set all cookies, without waiting for them to be set. Any subsequent
|
||||
// read will see the combined result of all cookie operation.
|
||||
|
|
Loading…
Reference in a new issue