diff --git a/atom/browser/ui/certificate_trust_win.cc b/atom/browser/ui/certificate_trust_win.cc index c3e310b7ecee..b4752b88c100 100644 --- a/atom/browser/ui/certificate_trust_win.cc +++ b/atom/browser/ui/certificate_trust_win.cc @@ -7,6 +7,8 @@ #include #include +#include "base/callback.h" + namespace certificate_trust { void ShowCertificateTrust(atom::NativeWindow* parent_window, @@ -33,13 +35,11 @@ void ShowCertificateTrust(atom::NativeWindow* parent_window, CERT_STORE_ADD_REPLACE_EXISTING, NULL); - // close certificate store CertCloseStore(hCertStore, CERT_CLOSE_STORE_FORCE_FLAG); - // free certificate CertFreeCertificateContext(pCertContext); - &callback; + callback.Run(); } } // namespace certificate_trust