diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/certificate_viewer_mac.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/certificate_viewer_mac.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/cocoa/certificate_viewer_mac.mm b/chrome/browser/ui/cocoa/certificate_viewer_mac.mm index 5fc37c5..0e66381 100644 --- a/chrome/browser/ui/cocoa/certificate_viewer_mac.mm +++ b/chrome/browser/ui/cocoa/certificate_viewer_mac.mm @@ -80,7 +80,7 @@ void ShowCertificateViewer(content::WebContents* web_contents, - (id)initWithCertificate:(net::X509Certificate*)certificate { if ((self = [super init])) { - base::mac::ScopedCFTypeRef<CFArrayRef> cert_chain( + base::ScopedCFTypeRef<CFArrayRef> cert_chain( certificate->CreateOSCertChainForCert()); NSArray* certificates = base::mac::CFToNSCast(cert_chain.get()); certificates_.reset([certificates retain]); @@ -110,7 +110,7 @@ void ShowCertificateViewer(content::WebContents* web_contents, // the certificate viewer UI from displaying which certificate is revoked. // This is acceptable, as certificate revocation will still be shown in // the page info bubble if a certificate in the chain is actually revoked. - base::mac::ScopedCFTypeRef<CFMutableArrayRef> policies( + base::ScopedCFTypeRef<CFMutableArrayRef> policies( CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks)); if (!policies.get()) { NOTREACHED(); |