Update url_request_http_job.cc
This commit is contained in:
parent
8c37139358
commit
d67be4a2e2
1 changed files with 10 additions and 6 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue