mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Remove client_certs from SSLCertRequestInfo.
https://codereview.chromium.org/2838243002
This commit is contained in:
committed by
Cheng Zhao
parent
364c330887
commit
b77b67bfbe
@@ -702,6 +702,7 @@ void App::AllowCertificateError(
|
||||
void App::SelectClientCertificate(
|
||||
content::WebContents* web_contents,
|
||||
net::SSLCertRequestInfo* cert_request_info,
|
||||
net::CertificateList client_certs,
|
||||
std::unique_ptr<content::ClientCertificateDelegate> delegate) {
|
||||
std::shared_ptr<content::ClientCertificateDelegate>
|
||||
shared_delegate(delegate.release());
|
||||
@@ -709,15 +710,14 @@ void App::SelectClientCertificate(
|
||||
Emit("select-client-certificate",
|
||||
WebContents::CreateFrom(isolate(), web_contents),
|
||||
cert_request_info->host_and_port.ToString(),
|
||||
cert_request_info->client_certs,
|
||||
std::move(client_certs),
|
||||
base::Bind(&OnClientCertificateSelected,
|
||||
isolate(),
|
||||
shared_delegate));
|
||||
|
||||
// Default to first certificate from the platform store.
|
||||
if (!prevent_default)
|
||||
shared_delegate->ContinueWithCertificate(
|
||||
cert_request_info->client_certs[0].get());
|
||||
shared_delegate->ContinueWithCertificate(client_certs[0].get());
|
||||
}
|
||||
|
||||
void App::OnGpuProcessCrashed(base::TerminationStatus status) {
|
||||
|
||||
Reference in New Issue
Block a user