Description[Android] Adding JavaLongArrayToInt64Vector method
Adding JavaLongArrayToInt64Vector method to provide symmetry for ToJavaLongArray
The problem is that on android_arm64_debug_recipe compilation fais for the following code:
jlongArray bookmark_ids_array;
std::vector<jlong> bookmark_ids;
base::android::JavaLongArrayToLongVector(
env, bookmark_ids_array, &bookmark_ids);
offline_page_model_->DeletePagesByBookmarkId(
bookmark_ids, ...)
Where expected type of first parameter in the DeletePAgesbyBookmarkId is std::vector<int64>, because int64 != jlong
int64 == int64_t == long int
jlong == long long int
This blocks: https://codereview.chromium.org/1307753002/
Sample failure: http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/110589
Committed: https://crrev.com/59ab07f3f378da67847072b6d51958ce997a2102
Cr-Commit-Position: refs/heads/master@{#345675}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Casting vector contents to jlong* #Patch Set 3 : switching to reinterpret_cast #Patch Set 4 : Removing reinterpret_cast #
Messages
Total messages: 10 (2 generated)
|