mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Split CertDatabase notifications between trust changes and client cert changes
https://chromium-review.googlesource.com/c/chromium/src/+/4596317
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user