Index: chrome/browser/webui/options/certificate_manager_handler.cc |
diff --git a/chrome/browser/webui/options/certificate_manager_handler.cc b/chrome/browser/webui/options/certificate_manager_handler.cc |
index bdbbfc915cea37b9a3ffbd97000ac14212a1928e..ab86e204c25a16232fa82ac8c26f426c216e3576 100644 |
--- a/chrome/browser/webui/options/certificate_manager_handler.cc |
+++ b/chrome/browser/webui/options/certificate_manager_handler.cc |
@@ -532,7 +532,8 @@ void CertificateManagerHandler::ExportPersonalPasswordSelected( |
} |
// Currently, we don't support exporting more than one at a time. If we do, |
- // this would need some cleanup to handle unlocking multiple slots. |
+ // this would need to either change this to use UnlockSlotsIfNecessary or |
+ // change UnlockCertSlotIfNecessary to take a CertificateList. |
DCHECK_EQ(selected_cert_list_.size(), 1U); |
// TODO(mattm): do something smarter about non-extractable keys |
@@ -629,8 +630,10 @@ void CertificateManagerHandler::ImportPersonalFileRead( |
// TODO(mattm): allow user to choose a slot to import to. |
module_ = certificate_manager_model_->cert_db().GetDefaultModule(); |
- browser::UnlockSlotIfNecessary( |
- module_.get(), |
+ net::CryptoModuleList modules; |
+ modules.push_back(module_); |
+ browser::UnlockSlotsIfNecessary( |
+ modules, |
browser::kCryptoModulePasswordCertImport, |
"", // unused. |
NewCallback(this, |