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

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: self review Created 4 years, 3 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
« no previous file with comments | « content/browser/devtools/protocol/security_handler.h ('k') | content/browser/loader/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
+ 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
« no previous file with comments | « content/browser/devtools/protocol/security_handler.h ('k') | content/browser/loader/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698