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

Unified Diff: chrome/browser/certificate_viewer.cc

Issue 10554010: Remove BrowserList::GetLastActive usage from WebUI pages. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 6 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/certificate_viewer.h ('k') | chrome/browser/chromeos/login/simple_web_view_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/certificate_viewer.cc
===================================================================
--- chrome/browser/certificate_viewer.cc (revision 142088)
+++ chrome/browser/certificate_viewer.cc (working copy)
@@ -7,7 +7,9 @@
#include "content/public/browser/cert_store.h"
#include "net/base/x509_certificate.h"
-void ShowCertificateViewerByID(gfx::NativeWindow parent, int cert_id) {
+void ShowCertificateViewerByID(content::WebContents* web_contents,
+ gfx::NativeWindow parent,
+ int cert_id) {
scoped_refptr<net::X509Certificate> cert;
content::CertStore::GetInstance()->RetrieveCert(cert_id, &cert);
if (!cert.get()) {
@@ -15,5 +17,5 @@
// we displayed the page info.
return;
}
- ShowCertificateViewer(parent, cert);
+ ShowCertificateViewer(web_contents, parent, cert);
}
« no previous file with comments | « chrome/browser/certificate_viewer.h ('k') | chrome/browser/chromeos/login/simple_web_view_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698