Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BASE_ANDROID_JNI_LOCAL_REF_EXTENSIONS_H_ | |
| 6 #define BASE_ANDROID_JNI_LOCAL_REF_EXTENSIONS_H_ | |
| 7 | |
| 8 #include "base/android/jni_android.h" | |
| 9 #include "base/android/jni_array.h" | |
| 10 #include "base/android/jni_string.h" | |
| 11 | |
| 12 namespace base { | |
| 13 namespace android { | |
| 14 | |
| 15 std::vector<string16> SafeJavaStringArrayToStringVector( | |
|
Ilya Sherman
2013/03/01 01:55:04
Returning a vector by value is generally frowned u
Ilya Sherman
2013/03/01 01:55:04
nit: Docs.
Ilya Sherman
2013/03/01 01:55:04
Honestly, this function doesn't seem like it belon
apiccion
2013/03/02 03:37:01
It bloats the code.
Had it as a private method in
Ilya Sherman
2013/03/05 00:42:37
Ok, I'll leave that up to base/android OWNERS.
| |
| 16 ScopedJavaLocalRef<jobjectArray> jarray, | |
| 17 JNIEnv* env); | |
| 18 | |
| 19 string16 SafeJavaStringToUTF16(ScopedJavaLocalRef<jstring> jstring); | |
|
Ilya Sherman
2013/03/01 01:55:04
nit: Docs.
apiccion
2013/03/02 03:37:01
Done.
| |
| 20 | |
| 21 } // namespace android | |
| 22 } // namespace base | |
| 23 | |
| 24 #endif // BASE_ANDROID_JNI_LOCAL_REF_EXTENSIONS_H_ | |
| OLD | NEW |