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

Issue 2204623002: Android: Don't require RegisterNatives if there are none (Closed)

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

Description

Android: Don't require RegisterNatives if there are none Nowadays the calls up to Java are lazily resolved, so RegisterNatives() actually does again what the name implies. Allow not calling RegisterNatives() if there are no native methods by marking it with the 'unused' attribute. In follow-up patches all references will be removed so that the generator can stop emiting the NOP functions where there are no native methods. This makes it more straightforward to design one-way JNI interfaces. BUG=603936, 617313, 617324 Committed: https://crrev.com/dbed3229058fc046539cd20cc546a740179d1fc4 Cr-Commit-Position: refs/heads/master@{#409221}

Patch Set 1 #

Total comments: 2

Messages

Total messages: 15 (10 generated)
no sievers
ptal https://codereview.chromium.org/2204623002/diff/1/base/android/jni_generator/jni_generator.py File base/android/jni_generator/jni_generator.py (right): https://codereview.chromium.org/2204623002/diff/1/base/android/jni_generator/jni_generator.py#newcode855 base/android/jni_generator/jni_generator.py:855: ${REGISTER_NATIVES_SIGNATURE} __attribute__((unused)); This can only be used on ...
4 years, 4 months ago (2016-08-01 21:42:41 UTC) #4
Torne
lgtm https://codereview.chromium.org/2204623002/diff/1/base/android/jni_generator/jni_generator.py File base/android/jni_generator/jni_generator.py (right): https://codereview.chromium.org/2204623002/diff/1/base/android/jni_generator/jni_generator.py#newcode855 base/android/jni_generator/jni_generator.py:855: ${REGISTER_NATIVES_SIGNATURE} __attribute__((unused)); On 2016/08/01 21:42:41, sievers wrote: > ...
4 years, 4 months ago (2016-08-02 12:23:13 UTC) #9
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/2204623002/1
4 years, 4 months ago (2016-08-02 17:25:40 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-02 17:30:15 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 17:33:36 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/dbed3229058fc046539cd20cc546a740179d1fc4
Cr-Commit-Position: refs/heads/master@{#409221}

Powered by Google App Engine
This is Rietveld 408576698