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

Unified Diff: chrome/browser/ui/android/page_info/certificate_chain_helper.cc

Issue 2652763007: Send site certificate chain to android payment app (Closed)
Patch Set: Actually call getCertificateChain Created 3 years, 11 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/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/page_info/certificate_chain_helper.cc
diff --git a/chrome/browser/ui/android/page_info/certificate_chain_helper.cc b/chrome/browser/ui/android/page_info/certificate_chain_helper.cc
index 50e14153cd9684619c3aaff3ca51c904fe8db4f5..6c1c1603263bf9f4bbd639fee9d2f3f5e210a3be 100644
--- a/chrome/browser/ui/android/page_info/certificate_chain_helper.cc
+++ b/chrome/browser/ui/android/page_info/certificate_chain_helper.cc
@@ -30,6 +30,8 @@ static ScopedJavaLocalRef<jobjectArray> GetCertificateChain(
scoped_refptr<net::X509Certificate> cert =
web_contents->GetController().GetVisibleEntry()->GetSSL().certificate;
+ if (!cert)
+ return ScopedJavaLocalRef<jobjectArray>();
std::vector<std::string> cert_chain;
net::X509Certificate::OSCertHandles cert_handles =
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestTestBase.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698