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

Issue 938373002: android: Refactor function name template in JNI generator. (Closed)

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

Description

android: Refactor function name template in JNI generator. Factor out the code which generates the native export stub name for a given native function, previously duplicated in two places, and also use it in a third place: when generating the table of method registrations. This will allow the table to be generated even when in native export mode, as previously the table referred to the default name which is not defined when using native exports. BUG=442327 Committed: https://crrev.com/37d21163c4d4d4079747a681b069d124b373d58f Cr-Commit-Position: refs/heads/master@{#317302}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added docstring for GetStubName #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -23 lines) Patch
M base/android/jni_generator/jni_generator.py View 1 6 chunks +36 lines, -23 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Torne
This doesn't change any of the output, the golden tests all still pass.
5 years, 10 months ago (2015-02-20 10:34:24 UTC) #2
rmcilroy
lgtm, thanks for the cleanup. https://codereview.chromium.org/938373002/diff/1/base/android/jni_generator/jni_generator.py File base/android/jni_generator/jni_generator.py (right): https://codereview.chromium.org/938373002/diff/1/base/android/jni_generator/jni_generator.py#newcode1038 base/android/jni_generator/jni_generator.py:1038: def GetStubName(self, native): could ...
5 years, 10 months ago (2015-02-20 10:56:02 UTC) #3
Torne
On 2015/02/20 10:56:02, rmcilroy wrote: > lgtm, thanks for the cleanup. > > https://codereview.chromium.org/938373002/diff/1/base/android/jni_generator/jni_generator.py > ...
5 years, 10 months ago (2015-02-20 11:40:11 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/938373002/20001
5 years, 10 months ago (2015-02-20 11:40:33 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-20 12:38:01 UTC) #8
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 12:38:25 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/37d21163c4d4d4079747a681b069d124b373d58f
Cr-Commit-Position: refs/heads/master@{#317302}

Powered by Google App Engine
This is Rietveld 408576698