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

Side by Side Diff: chrome/browser/certificate_viewer.cc

Issue 9691003: Add Content API around CertStore. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix clang Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/page_info_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/certificate_viewer.h" 5 #include "chrome/browser/certificate_viewer.h"
6 6
7 #include "content/browser/cert_store.h" 7 #include "content/public/browser/cert_store.h"
8 #include "net/base/x509_certificate.h"
8 9
9 void ShowCertificateViewerByID(gfx::NativeWindow parent, int cert_id) { 10 void ShowCertificateViewerByID(gfx::NativeWindow parent, int cert_id) {
10 scoped_refptr<net::X509Certificate> cert; 11 scoped_refptr<net::X509Certificate> cert;
11 CertStore::GetInstance()->RetrieveCert(cert_id, &cert); 12 content::CertStore::GetInstance()->RetrieveCert(cert_id, &cert);
12 if (!cert.get()) { 13 if (!cert.get()) {
13 // The certificate was not found. Could be that the renderer crashed before 14 // The certificate was not found. Could be that the renderer crashed before
14 // we displayed the page info. 15 // we displayed the page info.
15 return; 16 return;
16 } 17 }
17 ShowCertificateViewer(parent, cert); 18 ShowCertificateViewer(parent, cert);
18 } 19 }
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/page_info_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698