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()); OnGotFirstPartySetMetadata(FirstPartySetMetadata());
return; return;
} }
cookie_util::ComputeFirstPartySetMetadataMaybeAsync( absl::optional<FirstPartySetMetadata> metadata =
SchemefulSite(request()->url()), request()->isolation_info(), cookie_util::ComputeFirstPartySetMetadataMaybeAsync(
request()->context()->cookie_store()->cookie_access_delegate(), SchemefulSite(request()->url()), request()->isolation_info(),
request()->force_ignore_top_frame_party_for_cookies(), request()->context()->cookie_store()->cookie_access_delegate(),
base::BindOnce(&URLRequestHttpJob::OnGotFirstPartySetMetadata, request()->force_ignore_top_frame_party_for_cookies(),
weak_factory_.GetWeakPtr())); base::BindOnce(&URLRequestHttpJob::OnGotFirstPartySetMetadata,
weak_factory_.GetWeakPtr()));
if (metadata.has_value())
OnGotFirstPartySetMetadata(std::move(metadata.value()));
} }
void URLRequestHttpJob::OnGotFirstPartySetMetadata( void URLRequestHttpJob::OnGotFirstPartySetMetadata(