Index: content/browser/devtools/protocol/security_handler.cc |
diff --git a/content/browser/devtools/protocol/security_handler.cc b/content/browser/devtools/protocol/security_handler.cc |
index 8242203d94a88b4308d1e6eb3bb3eec17d76ddf7..f3a4f6e9775a91544bf323a7cc0253d62a8c940e 100644 |
--- a/content/browser/devtools/protocol/security_handler.cc |
+++ b/content/browser/devtools/protocol/security_handler.cc |
@@ -147,6 +147,15 @@ Response SecurityHandler::Disable() { |
return Response::OK(); |
} |
+Response SecurityHandler::ShowCertificateViewer(int certificate_id) { |
jam
2016/08/31 22:13:28
this is temporary since it's sent as part of the S
|
+ if (!host_) |
+ return Response::InternalError("Could not connect to view"); |
+ WebContents* web_contents = WebContents::FromRenderFrameHost(host_); |
+ web_contents->GetDelegate()->ShowCertificateViewerInDevTools( |
+ web_contents, certificate_id); |
+ return Response::OK(); |
+} |
+ |
} // namespace security |
} // namespace devtools |
} // namespace content |