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

Unified Diff: base/android/jni_utils.cc

Issue 2501193003: Selectively perform JNI registration in render processes on Android. (Closed)
Patch Set: Conditionally register JNI based on process type. 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
Index: base/android/jni_utils.cc
diff --git a/base/android/jni_utils.cc b/base/android/jni_utils.cc
index e11678df7ef243bc077121333a6c1773da4e601b..0fc53402c86fb5fb5c77aecd3252a9581637fa95 100644
--- a/base/android/jni_utils.cc
+++ b/base/android/jni_utils.cc
@@ -16,6 +16,11 @@ ScopedJavaLocalRef<jobject> GetClassLoader(JNIEnv* env) {
return Java_JNIUtils_getClassLoader(env);
}
+JniRegistrationType GetJniRegistrationType(JNIEnv* env) {
+ return static_cast<JniRegistrationType>(
+ Java_JNIUtils_getJniRegistrationType(env));
+}
+
} // namespace android
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698