Remove client_certs from SSLCertRequestInfo.

https://codereview.chromium.org/2838243002
This commit is contained in:
Aleksei Kuzmin 2017-08-05 00:11:01 +03:00 committed by Cheng Zhao
parent 364c330887
commit b77b67bfbe
4 changed files with 10 additions and 6 deletions

View file

@ -316,10 +316,12 @@ void AtomBrowserClient::AllowCertificateError(
void AtomBrowserClient::SelectClientCertificate(
content::WebContents* web_contents,
net::SSLCertRequestInfo* cert_request_info,
net::CertificateList client_certs,
std::unique_ptr<content::ClientCertificateDelegate> delegate) {
if (!cert_request_info->client_certs.empty() && delegate_) {
delegate_->SelectClientCertificate(
web_contents, cert_request_info, std::move(delegate));
if (!client_certs.empty() && delegate_) {
delegate_->SelectClientCertificate(web_contents, cert_request_info,
std::move(client_certs),
std::move(delegate));
}
}