Dont rely on absl for partitioned cookies.

This commit is contained in:
Alexander David Frick 2022-04-04 10:13:01 -05:00 committed by GitHub
parent 5bdd3661ef
commit e40b81e290
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -343,11 +343,9 @@ void URLRequestHttpJob::OnGotFirstPartySetMetadata(
// We shouldn't overwrite this if we've already computed the key.
DCHECK(!cookie_partition_key_.has_value());
cookie_partition_key_ =
absl::make_optional(CookiePartitionKey::FromNetworkIsolationKey(
request_->isolation_info().network_isolation_key(),
base::OptionalOrNullptr(
first_party_set_metadata_.top_frame_owner())));
cookie_partition_key_ = CookiePartitionKey::FromNetworkIsolationKey(
request_->isolation_info().network_isolation_key(),
base::OptionalOrNullptr(first_party_set_metadata_.top_frame_owner()));
AddCookieHeaderAndStart();
} else {
StartTransaction();