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

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

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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/public/browser/cert_store.h" 7 #include "content/public/browser/cert_store.h"
8 #include "net/cert/x509_certificate.h" 8 #include "net/cert/x509_certificate.h"
9 9
10 void ShowCertificateViewerByID(content::WebContents* web_contents, 10 void ShowCertificateViewerByID(content::WebContents* web_contents,
11 gfx::NativeWindow parent, 11 gfx::NativeWindow parent,
12 int cert_id) { 12 int cert_id) {
13 scoped_refptr<net::X509Certificate> cert; 13 scoped_refptr<net::X509Certificate> cert;
14 content::CertStore::GetInstance()->RetrieveCert(cert_id, &cert); 14 content::CertStore::GetInstance()->RetrieveCert(cert_id, &cert);
15 if (!cert.get()) { 15 if (!cert.get()) {
16 // The certificate was not found. Could be that the renderer crashed before 16 // The certificate was not found. Could be that the renderer crashed before
17 // we displayed the page info. 17 // we displayed the page info.
18 return; 18 return;
19 } 19 }
20 ShowCertificateViewer(web_contents, parent, cert.get()); 20 ShowCertificateViewer(web_contents, parent, cert.get());
21 } 21 }
22
23 #if defined(OS_ANDROID) && defined(USE_AURA)
24
25 void ShowCertificateViewer(content::WebContents* web_contents,
26 gfx::NativeWindow parent,
27 net::X509Certificate* cert) {
28 NOTIMPLEMENTED();
29 }
30
31 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698