Const ref that message

This commit is contained in:
joshaber 2017-04-03 15:28:44 -04:00
parent 11f5c942ce
commit 06643e525a
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ typedef base::Callback<void(bool result)> ShowTrustCallback;
void ShowCertificateTrust(atom::NativeWindow* parent_window, void ShowCertificateTrust(atom::NativeWindow* parent_window,
const scoped_refptr<net::X509Certificate>& cert, const scoped_refptr<net::X509Certificate>& cert,
std::string message, const std::string& message,
const ShowTrustCallback& callback); const ShowTrustCallback& callback);
} // namespace certificate_trust } // namespace certificate_trust

View file

@ -89,7 +89,7 @@ namespace certificate_trust {
void ShowCertificateTrust(atom::NativeWindow* parent_window, void ShowCertificateTrust(atom::NativeWindow* parent_window,
const scoped_refptr<net::X509Certificate>& cert, const scoped_refptr<net::X509Certificate>& cert,
std::string message, const std::string& message,
const ShowTrustCallback& callback) { const ShowTrustCallback& callback) {
auto sec_policy = SecPolicyCreateBasicX509(); auto sec_policy = SecPolicyCreateBasicX509();
auto cert_chain = cert->CreateOSCertChainForCert(); auto cert_chain = cert->CreateOSCertChainForCert();