Skip to content

Commit

Permalink
Split CertDatabase notifications between trust changes and client cer…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed Jun 15, 2023
1 parent 2c376c7 commit 1e2f7ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/browser/ui/certificate_trust_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ - (void)panelDidEnd:(NSWindow*)sheet
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];
Expand Down
2 changes: 1 addition & 1 deletion shell/browser/ui/certificate_trust_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e2f7ef

Please sign in to comment.