Chromium Code Reviews| Index: content/browser/ssl/ssl_manager.cc |
| diff --git a/content/browser/ssl/ssl_manager.cc b/content/browser/ssl/ssl_manager.cc |
| index df2e7575b49da85f0455e6e880cc5e0f01d02318..abfca595af8cda7dec8dbc229fa75a8d5ccdf71a 100644 |
| --- a/content/browser/ssl/ssl_manager.cc |
| +++ b/content/browser/ssl/ssl_manager.cc |
| @@ -356,11 +356,16 @@ void SSLManager::OnCertErrorInternal(std::unique_ptr<SSLErrorHandler> handler, |
| const net::SSLInfo& ssl_info = handler->ssl_info(); |
| const GURL& request_url = handler->request_url(); |
| ResourceType resource_type = handler->resource_type(); |
| - GetContentClient()->browser()->AllowCertificateError( |
| - web_contents, cert_error, ssl_info, request_url, resource_type, |
| - overridable, strict_enforcement, expired_previous_decision, |
| + |
| + base::Callback<void(content::CertificateRequestResultType)> callback = |
| base::Bind(&OnAllowCertificate, base::Owned(handler.release()), |
| - ssl_host_state_delegate_)); |
| + ssl_host_state_delegate_); |
| + |
| + if (!web_contents->NotifyCertificateError(callback)) { |
|
pfeldman
2017/02/08 18:24:00
Fetch devtools_agent_host_impl associated with the
irisu
2017/02/14 05:46:14
I'm not exactly sure how to do this. I can fetch t
Eric Seckler
2017/02/14 18:42:24
We could add a static method to RenderFrameDevTool
pfeldman
2017/02/14 19:00:24
Something like that would do, I would even put thi
irisu
2017/02/16 00:24:30
I've added this in RenderFrameDevToolsAgentHost fo
|
| + GetContentClient()->browser()->AllowCertificateError( |
| + web_contents, cert_error, ssl_info, request_url, resource_type, |
| + overridable, strict_enforcement, expired_previous_decision, callback); |
| + } |
| } |
| void SSLManager::UpdateEntry(NavigationEntryImpl* entry, |