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

Issue 1314753002: [Android] Adding JavaLongArrayToInt64Vector method (Closed)

Created:
5 years, 4 months ago by fgorski
Modified:
5 years, 3 months ago
Reviewers:
nyquist
CC:
chromium-reviews, DmitrySkiba
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M base/android/jni_array.h View 1 chunk +6 lines, -0 lines 0 comments Download
M base/android/jni_array.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
fgorski
Tommy, Please take a look. Thanks. Filip
5 years, 4 months ago (2015-08-25 00:07:47 UTC) #2
fgorski
On 2015/08/25 00:07:47, fgorski wrote: > Tommy, > > Please take a look. > > ...
5 years, 4 months ago (2015-08-25 00:22:22 UTC) #3
DmitrySkiba
https://codereview.chromium.org/1314753002/diff/1/base/android/jni_array.cc File base/android/jni_array.cc (right): https://codereview.chromium.org/1314753002/diff/1/base/android/jni_array.cc#newcode196 base/android/jni_array.cc:196: env->GetLongArrayRegion(long_array, 0, len, &(*out)[0]); Hmm, this should produce a ...
5 years, 4 months ago (2015-08-25 14:31:44 UTC) #4
fgorski
Thanks, Dmitry, Testing updated version now. https://codereview.chromium.org/1314753002/diff/1/base/android/jni_array.cc File base/android/jni_array.cc (right): https://codereview.chromium.org/1314753002/diff/1/base/android/jni_array.cc#newcode196 base/android/jni_array.cc:196: env->GetLongArrayRegion(long_array, 0, len, ...
5 years, 4 months ago (2015-08-25 18:37:55 UTC) #5
nyquist
lgtm
5 years, 4 months ago (2015-08-26 05:14:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314753002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314753002/60001
5 years, 3 months ago (2015-08-26 20:16:48 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-08-26 21:06:42 UTC) #9
commit-bot: I haz the power
5 years, 3 months ago (2015-08-26 21:08:02 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/59ab07f3f378da67847072b6d51958ce997a2102
Cr-Commit-Position: refs/heads/master@{#345675}

Powered by Google App Engine
This is Rietveld 408576698