Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: content/browser/devtools/protocol/security_handler.cc

Issue 2296953004: Send certificates to devtools when it's open instead of using certId (Closed)
Patch Set: take out unneeded code Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698