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

Side by Side Diff: base/android/java/src/org/chromium/base/JNIUtils.java

Issue 491043002: Make class lookup lazy in jni_generator when using lazy method lookup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/jni_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 package org.chromium.base;
6
7 /**
8 * This class provides JNI-related methods to the native library.
9 */
10 public class JNIUtils {
11 /**
12 * This returns a ClassLoader that is capable of loading Chromium Java code. Such a ClassLoader
13 * is needed for the few cases where the JNI mechanism is unable to automati cally determine the
14 * appropriate ClassLoader instance.
15 */
16 @CalledByNative
17 public static Object getClassLoader() {
18 return JNIUtils.class.getClassLoader();
19 }
20 }
OLDNEW
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/jni_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698