2020-03-04 01:29:39 +01:00
|
|
|
diff --git content/browser/storage_partition_impl.cc content/browser/storage_partition_impl.cc
|
2024-03-19 22:11:42 +01:00
|
|
|
index 80d9b70bf76b3..d9b8d78f6aa01 100644
|
2020-03-04 01:29:39 +01:00
|
|
|
--- content/browser/storage_partition_impl.cc
|
|
|
|
+++ content/browser/storage_partition_impl.cc
|
2024-03-19 22:11:42 +01:00
|
|
|
@@ -3282,8 +3282,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-19 22:11:42 +01:00
|
|
|
@@ -3293,9 +3297,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 "
|