Split CertDatabase notifications between trust changes and client cert changes

https://chromium-review.googlesource.com/c/chromium/src/+/4596317
This commit is contained in:
John Kleinschmidt
2023-06-15 10:28:29 -04:00
parent 2c376c7f1a
commit 1e2f7ef605
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@
auto* cert_db = net::CertDatabase::GetInstance();
// This forces Chromium to reload the certificate since it might be trusted
// now.
cert_db->NotifyObserversCertDBChanged();
cert_db->NotifyObserversTrustStoreChanged();
promise_->Resolve();
[self autorelease];

View File

@@ -33,7 +33,7 @@ BOOL AddToTrustedRootStore(const PCCERT_CONTEXT cert_context,
if (result) {
// force Chromium to reload it's database for this certificate
auto* cert_db = net::CertDatabase::GetInstance();
cert_db->NotifyObserversCertDBChanged();
cert_db->NotifyObserversTrustStoreChanged();
}
CertCloseStore(root_cert_store, CERT_CLOSE_STORE_FORCE_FLAG);