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

Side by Side Diff: net/android/cert_verify_result_android.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "net/android/cert_verify_result_android.h" 5 #include "net/android/cert_verify_result_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "jni/AndroidCertVerifyResult_jni.h" 9 #include "jni/AndroidCertVerifyResult_jni.h"
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 *is_issued_by_known_root = 26 *is_issued_by_known_root =
27 Java_AndroidCertVerifyResult_isIssuedByKnownRoot(env, result); 27 Java_AndroidCertVerifyResult_isIssuedByKnownRoot(env, result);
28 28
29 ScopedJavaLocalRef<jobjectArray> chain_byte_array = 29 ScopedJavaLocalRef<jobjectArray> chain_byte_array =
30 Java_AndroidCertVerifyResult_getCertificateChainEncoded(env, result); 30 Java_AndroidCertVerifyResult_getCertificateChainEncoded(env, result);
31 JavaArrayOfByteArrayToStringVector( 31 JavaArrayOfByteArrayToStringVector(
32 env, chain_byte_array.obj(), verified_chain); 32 env, chain_byte_array.obj(), verified_chain);
33 } 33 }
34 34
35 bool RegisterCertVerifyResult(JNIEnv* env) {
36 return RegisterNativesImpl(env);
37 }
38
39 } // namespace android 35 } // namespace android
40 } // namespace net 36 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698