This source file includes following definitions.
- ShowCertificateViewerByID
#include "chrome/browser/certificate_viewer.h"
#include "content/public/browser/cert_store.h"
#include "net/cert/x509_certificate.h"
void ShowCertificateViewerByID(content::WebContents* web_contents,
gfx::NativeWindow parent,
int cert_id) {
scoped_refptr<net::X509Certificate> cert;
content::CertStore::GetInstance()->RetrieveCert(cert_id, &cert);
if (!cert.get()) {
return;
}
ShowCertificateViewer(web_contents, parent, cert.get());
}