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

Issue 1476403003: jni: Pass method parameters as JavaParamRef in base. (Closed)

Created:
5 years ago by Torne
Modified:
5 years ago
Reviewers:
nyquist
CC:
chromium-reviews, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

jni: Pass method parameters as JavaParamRef in base. Pass all object parameters to JNI methods in JavaParamRef<> wrappers. This matches previous changes made to do this for JNI non-method functions. Also tidy up the code in sample_for_tests to make it easier to use as an example. BUG=506850 Committed: https://crrev.com/70f3fac9eba163c6b59ca23e88f720a035312394 Cr-Commit-Position: refs/heads/master@{#362730}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove unnecessary namespace qualifiers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -22 lines) Patch
M base/android/java_handler_thread.h View 1 1 chunk +6 lines, -2 lines 0 comments Download
M base/android/java_handler_thread.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M base/android/jni_generator/sample_for_tests.h View 1 chunk +12 lines, -6 lines 0 comments Download
M base/android/jni_generator/sample_for_tests.cc View 4 chunks +18 lines, -12 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Torne
5 years ago (2015-11-27 12:54:18 UTC) #2
nyquist
lgtm. A couple of comments regarding namespace, but otherwise looks good. Feel free to submit ...
5 years ago (2015-12-02 01:35:43 UTC) #3
Torne
On 2015/12/02 01:35:43, nyquist wrote: > lgtm. > > A couple of comments regarding namespace, ...
5 years ago (2015-12-02 15:15:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1476403003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1476403003/20001
5 years ago (2015-12-02 15:17:41 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-02 16:31:26 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/70f3fac9eba163c6b59ca23e88f720a035312394 Cr-Commit-Position: refs/heads/master@{#362730}
5 years ago (2015-12-02 16:32:52 UTC) #10
nyquist
5 years ago (2015-12-02 17:55:00 UTC) #11
Message was sent while issue was closed.
>
https://codereview.chromium.org/1476403003/diff/1/base/android/jni_generator/...
> > base/android/jni_generator/sample_for_tests.h:152: const
> > base::android::JavaParamRef<jobject>& caller);
> > This is also base::android already. Did you keep base::android because this
is
> > for documentation purposes?
> 
> I didn't really think about this, but yes, I do want to leave it here for
> documentation purposes (we don't want people to add "using" in header files).

Yeah, that's what I was hoping you'd say :-)

Powered by Google App Engine
This is Rietveld 408576698