2020-03-04 01:29:39 +01:00
|
|
|
diff --git content/browser/storage_partition_impl.cc content/browser/storage_partition_impl.cc
|
2024-11-14 23:07:03 +01:00
|
|
|
index c43bb22ce2326..f757f4aa5e822 100644
|
2020-03-04 01:29:39 +01:00
|
|
|
--- content/browser/storage_partition_impl.cc
|
|
|
|
+++ content/browser/storage_partition_impl.cc
|
2024-11-14 23:07:03 +01:00
|
|
|
@@ -3335,9 +3335,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 "
|