2020-03-04 01:29:39 +01:00
|
|
|
diff --git content/browser/storage_partition_impl.cc content/browser/storage_partition_impl.cc
|
2024-10-24 17:05:31 +02:00
|
|
|
index 8e5c22a3050d9..dd000e024d95d 100644
|
2020-03-04 01:29:39 +01:00
|
|
|
--- content/browser/storage_partition_impl.cc
|
|
|
|
+++ content/browser/storage_partition_impl.cc
|
2024-10-24 17:05:31 +02:00
|
|
|
@@ -3334,9 +3334,12 @@ void StoragePartitionImpl::InitNetworkContext() {
|
2021-10-19 00:17:16 +02:00
|
|
|
cert_verifier::mojom::CertVerifierCreationParamsPtr
|
|
|
|
cert_verifier_creation_params =
|
|
|
|
cert_verifier::mojom::CertVerifierCreationParams::New();
|
|
|
|
- GetContentClient()->browser()->ConfigureNetworkContextParams(
|
|
|
|
+ if (!GetContentClient()->browser()->ConfigureNetworkContextParams(
|
2021-08-20 01:40:49 +02:00
|
|
|
browser_context_, is_in_memory(), relative_partition_path_,
|
2021-10-19 00:17:16 +02:00
|
|
|
- context_params.get(), cert_verifier_creation_params.get());
|
|
|
|
+ context_params.get(), cert_verifier_creation_params.get())) {
|
2020-07-20 19:49:16 +02:00
|
|
|
+ // Don't re-initialize the network context during shutdown.
|
2020-03-04 01:29:39 +01:00
|
|
|
+ return;
|
|
|
|
+ }
|
2021-12-16 23:35:54 +01:00
|
|
|
// Should be initialized with existing per-profile CORS access lists.
|
|
|
|
DCHECK(context_params->cors_origin_access_list.empty())
|
|
|
|
<< "NetworkContextParams::cors_origin_access_list should be populated "
|