Update url_request_http_job.cc

This commit is contained in:
Alexander David Frick 2022-02-08 18:33:01 -06:00 committed by GitHub
parent 8c37139358
commit d67be4a2e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -285,12 +285,16 @@ void URLRequestHttpJob::Start() {
OnGotFirstPartySetMetadata(FirstPartySetMetadata());
return;
}
cookie_util::ComputeFirstPartySetMetadataMaybeAsync(
SchemefulSite(request()->url()), request()->isolation_info(),
request()->context()->cookie_store()->cookie_access_delegate(),
request()->force_ignore_top_frame_party_for_cookies(),
base::BindOnce(&URLRequestHttpJob::OnGotFirstPartySetMetadata,
weak_factory_.GetWeakPtr()));
absl::optional<FirstPartySetMetadata> metadata =
cookie_util::ComputeFirstPartySetMetadataMaybeAsync(
SchemefulSite(request()->url()), request()->isolation_info(),
request()->context()->cookie_store()->cookie_access_delegate(),
request()->force_ignore_top_frame_party_for_cookies(),
base::BindOnce(&URLRequestHttpJob::OnGotFirstPartySetMetadata,
weak_factory_.GetWeakPtr()));
if (metadata.has_value())
OnGotFirstPartySetMetadata(std::move(metadata.value()));
}
void URLRequestHttpJob::OnGotFirstPartySetMetadata(