2020-03-04 01:29:39 +01:00
|
|
|
diff --git content/browser/storage_partition_impl.cc content/browser/storage_partition_impl.cc
|
2024-03-28 00:23:12 +01:00
|
|
|
index 733ac0ebce185..5f18ff341abdb 100644
|
2020-03-04 01:29:39 +01:00
|
|
|
--- content/browser/storage_partition_impl.cc
|
|
|
|
+++ content/browser/storage_partition_impl.cc
|
2024-03-28 00:23:12 +01:00
|
|
|
@@ -3281,8 +3281,12 @@ void StoragePartitionImpl::GetQuotaSettings(
|
2020-03-04 01:29:39 +01:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // CEF always returns false for IsOffTheRecord(), so also check the path.
|
|
|
|
+ const bool is_incognito = browser_context_->IsOffTheRecord() ||
|
|
|
|
+ browser_context_->GetPath().empty();
|
2020-06-09 19:48:00 +02:00
|
|
|
+
|
2020-03-04 01:29:39 +01:00
|
|
|
storage::GetNominalDynamicSettings(
|
|
|
|
- GetPath(), browser_context_->IsOffTheRecord(),
|
|
|
|
+ GetPath(), is_incognito,
|
|
|
|
storage::GetDefaultDeviceInfoHelper(), std::move(callback));
|
|
|
|
}
|
|
|
|
|
2024-03-28 00:23:12 +01:00
|
|
|
@@ -3292,9 +3296,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 "
|