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

Issue 115103002: Android: sync up latest JNI generator changes from downstream. (Closed)

Created:
7 years ago by bulach
Modified:
6 years, 11 months ago
Reviewers:
nadiapayet, dawalker, rmcilroy, tatsuo
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Android: sync up latest JNI generator changes from downstream. Quite a few changes were made downstream, keep them in sync: - specify the #include files. - inject the common DCHECKs for class and native pointers. - inject the check exception call. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243558

Patch Set 1 #

Patch Set 2 : Adds missing files #

Total comments: 6

Patch Set 3 : Comments #

Total comments: 5

Patch Set 4 : "D"CHECK -> CHECK #

Total comments: 4

Patch Set 5 : Adds extra params #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1133 lines, -499 lines) Patch
M base/android/jni_generator/golden_sample_for_tests_jni.h View 1 2 3 4 15 chunks +98 lines, -78 lines 0 comments Download
M base/android/jni_generator/java/src/org/chromium/example/jni_generator/SampleForTests.java View 2 chunks +4 lines, -5 lines 0 comments Download
M base/android/jni_generator/jni_generator.py View 1 2 3 4 19 chunks +279 lines, -88 lines 0 comments Download
A base/android/jni_generator/jni_generator_helper.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
M base/android/jni_generator/jni_generator_tests.py View 1 2 6 chunks +93 lines, -15 lines 0 comments Download
M base/android/jni_generator/sample_for_tests.h View 2 chunks +4 lines, -0 lines 0 comments Download
M base/android/jni_generator/sample_for_tests.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M base/android/jni_generator/testCalledByNatives.golden View 1 2 3 4 23 chunks +136 lines, -120 lines 0 comments Download
A base/android/jni_generator/testEagerCalledByNativesOption.golden View 1 2 3 4 1 chunk +140 lines, -0 lines 0 comments Download
M base/android/jni_generator/testFromJavaP.golden View 1 2 3 4 21 chunks +60 lines, -52 lines 0 comments Download
M base/android/jni_generator/testFromJavaPGenerics.golden View 1 2 3 4 4 chunks +10 lines, -12 lines 0 comments Download
M base/android/jni_generator/testInnerClassNatives.golden View 1 2 3 4 3 chunks +13 lines, -15 lines 0 comments Download
M base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.golden View 1 2 3 4 3 chunks +22 lines, -22 lines 0 comments Download
M base/android/jni_generator/testInnerClassNativesMultiple.golden View 1 2 3 4 3 chunks +22 lines, -22 lines 0 comments Download
A base/android/jni_generator/testJNIInitNativeNameOption.golden View 1 2 3 4 1 chunk +67 lines, -0 lines 0 comments Download
M base/android/jni_generator/testJarJarRemapping.golden View 1 2 3 4 2 chunks +13 lines, -15 lines 0 comments Download
M base/android/jni_generator/testNatives.golden View 1 2 3 4 4 chunks +36 lines, -38 lines 0 comments Download
M base/android/jni_generator/testNativesLong.golden View 1 2 3 4 2 chunks +15 lines, -17 lines 0 comments Download
A base/android/jni_generator/testPureNativeMethodsOption.golden View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M build/jar_file_jni_generator.gypi View 2 chunks +6 lines, -0 lines 0 comments Download
M build/jni_generator.gypi View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
bulach
hey folks, In order to ensure my patch downstream also work in chrome :) I'd ...
7 years ago (2013-12-13 10:55:54 UTC) #1
rmcilroy
One meta-point - I'm not really sure if the eager_called_by_natives / lazy_called_by_natives is worth the ...
7 years ago (2013-12-13 14:14:51 UTC) #2
bulach
thanks ross! as for the meta question: yeah, it's a bit unfortunate to support both ...
7 years ago (2013-12-13 15:23:57 UTC) #3
dawalker
https://codereview.chromium.org/115103002/diff/30001/base/android/jni_generator/jni_generator_helper.h File base/android/jni_generator/jni_generator_helper.h (right): https://codereview.chromium.org/115103002/diff/30001/base/android/jni_generator/jni_generator_helper.h#newcode19 base/android/jni_generator/jni_generator_helper.h:19: #define DCHECK_NATIVE_PTR(native_ptr, method_name, ...) \ One comment that Tatsuo ...
7 years ago (2013-12-13 21:41:08 UTC) #4
dawalker
https://codereview.chromium.org/115103002/diff/30001/base/android/jni_generator/jni_generator_helper.h File base/android/jni_generator/jni_generator_helper.h (right): https://codereview.chromium.org/115103002/diff/30001/base/android/jni_generator/jni_generator_helper.h#newcode19 base/android/jni_generator/jni_generator_helper.h:19: #define DCHECK_NATIVE_PTR(native_ptr, method_name, ...) \ On 2013/12/13 21:41:08, dawalker ...
7 years ago (2013-12-13 21:57:58 UTC) #5
nadiapayet
Hey Marcus, Any update on this CL? I am blocked on this (and the subsequent ...
6 years, 11 months ago (2014-01-06 19:22:59 UTC) #6
bulach
happy new year everybody! :) I think the most contentious bits was the (D)CHECK.. I'm ...
6 years, 11 months ago (2014-01-07 09:23:53 UTC) #7
nadiapayet
On 2014/01/07 09:23:53, bulach wrote: > happy new year everybody! :) > > I think ...
6 years, 11 months ago (2014-01-07 16:40:08 UTC) #8
nadiapayet
https://codereview.chromium.org/115103002/diff/50001/base/android/jni_generator/jni_generator_helper.h File base/android/jni_generator/jni_generator_helper.h (right): https://codereview.chromium.org/115103002/diff/50001/base/android/jni_generator/jni_generator_helper.h#newcode19 base/android/jni_generator/jni_generator_helper.h:19: #define CHECK_NATIVE_PTR(native_ptr, method_name, ...) \ We would also need ...
6 years, 11 months ago (2014-01-07 16:53:01 UTC) #9
bulach
thanks nadia! addressed, another look please? https://codereview.chromium.org/115103002/diff/50001/base/android/jni_generator/jni_generator_helper.h File base/android/jni_generator/jni_generator_helper.h (right): https://codereview.chromium.org/115103002/diff/50001/base/android/jni_generator/jni_generator_helper.h#newcode19 base/android/jni_generator/jni_generator_helper.h:19: #define CHECK_NATIVE_PTR(native_ptr, method_name, ...
6 years, 11 months ago (2014-01-07 18:03:51 UTC) #10
nadiapayet
Looking great, thanks! This LGTM now. Let's wait for dawalker's comments before submitting.
6 years, 11 months ago (2014-01-07 18:37:19 UTC) #11
dawalker
On 2014/01/07 18:37:19, nadiapayet wrote: > Looking great, thanks! This LGTM now. Let's wait for ...
6 years, 11 months ago (2014-01-07 21:40:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/115103002/140001
6 years, 11 months ago (2014-01-08 08:59:52 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=243236
6 years, 11 months ago (2014-01-08 12:23:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/115103002/140001
6 years, 11 months ago (2014-01-08 13:18:38 UTC) #15
commit-bot: I haz the power
6 years, 11 months ago (2014-01-08 14:41:23 UTC) #16
Message was sent while issue was closed.
Change committed as 243558

Powered by Google App Engine
This is Rietveld 408576698