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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/pageinfo/ConnectionInfoPopup.java

Issue 2567673002: Factor getCertificateChain out of ConnectionPopupInfo (Closed)
Patch Set: Address review comments Created 4 years 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
Index: chrome/android/java/src/org/chromium/chrome/browser/pageinfo/ConnectionInfoPopup.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/pageinfo/ConnectionInfoPopup.java b/chrome/android/java/src/org/chromium/chrome/browser/pageinfo/ConnectionInfoPopup.java
index b99c9289cf39f4ef698b1414c2e7c99c304d2893..8f9d8b799c03fad2eb76f3c7424c3a0244e38a57 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/pageinfo/ConnectionInfoPopup.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/pageinfo/ConnectionInfoPopup.java
@@ -207,7 +207,7 @@ public class ConnectionInfoPopup implements OnClickListener {
nativeResetCertDecisions(mNativeConnectionInfoPopup, mWebContents);
mDialog.dismiss();
} else if (mCertificateViewer == v) {
- byte[][] certChain = nativeGetCertificateChain(mWebContents);
+ byte[][] certChain = CertificateChainHelper.getCertificateChain(mWebContents);
if (certChain == null) {
// The WebContents may have been destroyed/invalidated. If so,
// ignore this request.
@@ -247,5 +247,4 @@ public class ConnectionInfoPopup implements OnClickListener {
private native void nativeDestroy(long nativeConnectionInfoPopupAndroid);
private native void nativeResetCertDecisions(
long nativeConnectionInfoPopupAndroid, WebContents webContents);
- private native byte[][] nativeGetCertificateChain(WebContents webContents);
}

Powered by Google App Engine
This is Rietveld 408576698