Index: base/android/jni_array.h |
diff --git a/base/android/jni_array.h b/base/android/jni_array.h |
index 58282b1b0c7dfacc443f8fb253f1083ee7fcd02e..b3b11d358a3f1764c2d1522f4d8dbbdf71b061d5 100644 |
--- a/base/android/jni_array.h |
+++ b/base/android/jni_array.h |
@@ -104,6 +104,12 @@ BASE_EXPORT void JavaFloatArrayToFloatVector( |
jfloatArray float_array, |
std::vector<float>* out); |
+// Replaces the content of |out| with the Java objects in |jobject_array|. |
+BASE_EXPORT void JavaJObjectArrayToJObjectVector( |
+ JNIEnv* env, |
+ jobjectArray jobject_array, |
+ std::vector<ScopedJavaLocalRef<jobject>>* out); |
+ |
// Assuming |array| is an byte[][] (array of byte arrays), replaces the |
// content of |out| with the corresponding vector of strings. No UTF-8 |
// conversion is performed. |