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

Issue 2199973003: Android JNI gen: Don't emit code for empty RegisterNatives() (Closed)

Created:
4 years, 4 months ago by no sievers
Modified:
4 years, 4 months ago
Reviewers:
halliwell, Simeon, Torne
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@jnireg1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android JNI gen: Don't emit code for empty RegisterNatives() BUG=603936 TBR=halliwell@chromium.org Committed: https://crrev.com/da13ab25380b86601db01fc11ad04e4c515b2209 Cr-Commit-Position: refs/heads/master@{#409657}

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comment #

Patch Set 3 : rebase #

Patch Set 4 : Android JNI gen: Don't emit code for empty RegisterNatives() #

Total comments: 1

Patch Set 5 : Android JNI gen: Don't emit code for empty RegisterNatives() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -83 lines) Patch
M android_webview/native/input_stream_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M base/android/jni_generator/jni_generator.py View 1 3 chunks +7 lines, -8 lines 0 comments Download
M base/android/jni_generator/testCalledByNatives.golden View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M base/android/jni_generator/testConstantsFromJavaP.golden View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M base/android/jni_generator/testFromJavaP.golden View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M base/android/jni_generator/testFromJavaPGenerics.golden View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M base/android/jni_generator/testNativeExportsOnlyOption.golden View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M chromecast/android/cast_jni_registrar.cc View 1 2 3 4 2 chunks +0 lines, -8 lines 0 comments Download
M chromecast/app/android/crash_handler.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chromecast/app/android/crash_handler.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M chromecast/base/android/dumpstate_writer.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chromecast/base/android/dumpstate_writer.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chromecast/base/cast_sys_info_android.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M chromecast/base/cast_sys_info_android.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chromecast/browser/android/cast_window_android.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chromecast/browser/android/cast_window_android.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 41 (28 generated)
no sievers
When everything else is landed, then I'd attempt to land this. ptal.
4 years, 4 months ago (2016-08-01 23:05:17 UTC) #3
Torne
lgtm, but maybe don't do the fiddly thing with the comment? https://codereview.chromium.org/2199973003/diff/1/base/android/jni_generator/jni_generator.py File base/android/jni_generator/jni_generator.py (right): ...
4 years, 4 months ago (2016-08-02 12:31:40 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2199973003/1
4 years, 4 months ago (2016-08-02 17:38:44 UTC) #6
no sievers
https://codereview.chromium.org/2199973003/diff/1/base/android/jni_generator/jni_generator.py File base/android/jni_generator/jni_generator.py (right): https://codereview.chromium.org/2199973003/diff/1/base/android/jni_generator/jni_generator.py#newcode743 base/android/jni_generator/jni_generator.py:743: $STEP3_COMMENT On 2016/08/02 12:31:40, Torne wrote: > I'd really ...
4 years, 4 months ago (2016-08-02 23:12:17 UTC) #8
no sievers
+halliwell@ FYI, see comment https://codereview.chromium.org/2199973003/diff/80001/chromecast/base/cast_sys_info_android.h File chromecast/base/cast_sys_info_android.h (right): https://codereview.chromium.org/2199973003/diff/80001/chromecast/base/cast_sys_info_android.h#newcode45 chromecast/base/cast_sys_info_android.h:45: void DeviceNameChanged(JNIEnv* env, jobject obj, ...
4 years, 4 months ago (2016-08-03 21:20:05 UTC) #22
halliwell
On 2016/08/03 21:20:05, sievers wrote: > +halliwell@ FYI, see comment > > https://codereview.chromium.org/2199973003/diff/80001/chromecast/base/cast_sys_info_android.h > File ...
4 years, 4 months ago (2016-08-03 21:27:37 UTC) #24
Simeon
On 2016/08/03 21:27:37, halliwell wrote: > On 2016/08/03 21:20:05, sievers wrote: > > +halliwell@ FYI, ...
4 years, 4 months ago (2016-08-03 22:20:34 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2199973003/100001
4 years, 4 months ago (2016-08-03 23:15:22 UTC) #34
halliwell
On 2016/08/03 23:15:22, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 4 months ago (2016-08-03 23:17:20 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 4 months ago (2016-08-03 23:20:57 UTC) #37
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/da13ab25380b86601db01fc11ad04e4c515b2209 Cr-Commit-Position: refs/heads/master@{#409657}
4 years, 4 months ago (2016-08-03 23:23:40 UTC) #39
mikecase (-- gone --)
On 2016/08/03 at 23:23:40, commit-bot wrote: > Patchset 5 (id:??) landed as https://crrev.com/da13ab25380b86601db01fc11ad04e4c515b2209 > Cr-Commit-Position: ...
4 years, 4 months ago (2016-08-04 15:19:06 UTC) #40
Torne
4 years, 4 months ago (2016-08-04 16:09:05 UTC) #41
Message was sent while issue was closed.
On 2016/08/04 15:19:06, mikecase wrote:
> On 2016/08/03 at 23:23:40, commit-bot wrote:
> > Patchset 5 (id:??) landed as
> https://crrev.com/da13ab25380b86601db01fc11ad04e4c515b2209
> > Cr-Commit-Position: refs/heads/master@{#409657}
> 
> This CL seems to be causing a compile failure on the cronet bots.
> 
>
https://build.chromium.org/p/chromium.android/builders/Android%20Cronet%20ARM...
> 
> ../../net/base/net_string_util_icu_alternatives_android.cc: In function 'bool
> net::RegisterNetStringUtils(JNIEnv*)':
> ../../net/base/net_string_util_icu_alternatives_android.cc:117:10: error:
> 'RegisterNativesImpl' is not a member of 'net::android'
>    return android::RegisterNativesImpl(env);
>           ^
> ../../net/base/net_string_util_icu_alternatives_android.cc:118:1: error:
control
> reaches end of non-void function [-Werror=return-type]
>  }

Yup, sorry, the CQ doesn't cover the config where
use_platform_icu_alternatives=true (cronet bots) and so this got overlooked. CL
to remove the right code from that codepath here:
https://codereview.chromium.org/2215863002/

Powered by Google App Engine
This is Rietveld 408576698