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

Side by Side Diff: net/android/keystore.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/keystore.h" 5 #include "net/android/keystore.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 91
92 ScopedJavaLocalRef<jobject> GetOpenSSLEngineForPrivateKey( 92 ScopedJavaLocalRef<jobject> GetOpenSSLEngineForPrivateKey(
93 jobject private_key_ref) { 93 jobject private_key_ref) {
94 JNIEnv* env = AttachCurrentThread(); 94 JNIEnv* env = AttachCurrentThread();
95 ScopedJavaLocalRef<jobject> engine = 95 ScopedJavaLocalRef<jobject> engine =
96 Java_AndroidKeyStore_getOpenSSLEngineForPrivateKey(env, private_key_ref); 96 Java_AndroidKeyStore_getOpenSSLEngineForPrivateKey(env, private_key_ref);
97 return engine; 97 return engine;
98 } 98 }
99 99
100 bool RegisterKeyStore(JNIEnv* env) {
101 return RegisterNativesImpl(env);
102 }
103
104 } // namespace android 100 } // namespace android
105 } // namespace net 101 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698