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

Unified Diff: chrome/browser/ui/browser.cc

Issue 1325023002: DevTools: [security] allow opening certificate viewer from devtools (chrome) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved into wcd Created 5 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 | « chrome/browser/ui/browser.h ('k') | content/browser/devtools/protocol/network_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 5ad781c63e1c0d52ad5d5abeda232e7c3ee7c987..400b7d487b048cdf468167e32bff30ae4aa0b4a4 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1374,6 +1374,14 @@ content::SecurityStyle Browser::GetSecurityStyle(
return security_info.security_style;
}
+void Browser::ShowCertificateViewerInDevTools(
+ content::WebContents* web_contents, int cert_id) {
+ DevToolsWindow* devtools_window =
+ DevToolsWindow::GetInstanceForInspectedWebContents(web_contents);
+ if (devtools_window)
+ devtools_window->ShowCertificateViewer(cert_id);
+}
+
bool Browser::IsMouseLocked() const {
return exclusive_access_manager_->mouse_lock_controller()->IsMouseLocked();
}
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | content/browser/devtools/protocol/network_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698