Index: chrome/browser/ui/views/ssl_client_certificate_selector.cc |
diff --git a/chrome/browser/ui/views/ssl_client_certificate_selector.cc b/chrome/browser/ui/views/ssl_client_certificate_selector.cc |
index 2ac8076df9e0eb9e1d41f3784b8d3c7007c45c83..4a96ca97f5632bae9e74641b8a0461e85b907f3c 100644 |
--- a/chrome/browser/ui/views/ssl_client_certificate_selector.cc |
+++ b/chrome/browser/ui/views/ssl_client_certificate_selector.cc |
@@ -189,14 +189,14 @@ bool SSLClientCertificateSelector::Cancel() { |
bool SSLClientCertificateSelector::Accept() { |
DVLOG(1) << __FUNCTION__; |
scoped_refptr<net::X509Certificate> cert = GetSelectedCert(); |
- if (cert) { |
+ if (cert.get()) { |
// Remove the observer before we try unlocking, otherwise we might act on a |
// notification while waiting for the unlock dialog, causing us to delete |
// ourself before the Unlocked callback gets called. |
StopObserving(); |
#if defined(USE_NSS) |
chrome::UnlockCertSlotIfNecessary( |
- cert, |
+ cert.get(), |
chrome::kCryptoModulePasswordClientAuth, |
cert_request_info()->host_and_port, |
GetWidget()->GetNativeView(), |