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

Issue 935413004: Separate OnJNIOnLoad (Closed)

Created:
5 years, 10 months ago by michaelbai
Modified:
5 years, 10 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, lcwu+watch_chromium.org, jam, klundberg+watch_chromium.org, jbudorick+watch_chromium.org, darin-cc_chromium.org, yfriedman+watch_chromium.org, gunsch+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, erikwright+watch_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate OnJNIOnLoad Separate it into OnJNIOnLoadRegisterJNI() and OnJNIOnLoadInit(), so they could be called by embedder when needed. BUG=447393 Committed: https://crrev.com/5237cb89a8fc1a743b483bc2be5cdbe9669d9d86 Cr-Commit-Position: refs/heads/master@{#317479}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 4

Patch Set 3 : fix chromecast #

Total comments: 3

Patch Set 4 : address comments #

Patch Set 5 : remove popback #

Patch Set 6 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -295 lines) Patch
M android_webview/android_webview.gyp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M android_webview/lib/main/webview_entry_point.cc View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
A android_webview/lib/main/webview_jni_onload.h View 1 1 chunk +17 lines, -0 lines 0 comments Download
A + android_webview/lib/main/webview_jni_onload.cc View 1 2 3 4 5 5 chunks +3 lines, -9 lines 0 comments Download
D android_webview/lib/main/webview_jni_onload_delegate.h View 1 1 chunk +0 lines, -22 lines 0 comments Download
D android_webview/lib/main/webview_jni_onload_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -58 lines 0 comments Download
M base/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M base/android/base_jni_onload.h View 1 2 3 1 chunk +12 lines, -7 lines 0 comments Download
M base/android/base_jni_onload.cc View 1 2 3 4 5 1 chunk +19 lines, -33 lines 0 comments Download
D base/android/jni_onload_delegate.h View 1 1 chunk +0 lines, -41 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/app/android/chrome_jni_onload.cc View 1 2 chunks +6 lines, -11 lines 0 comments Download
M chromecast/app/android/cast_jni_loader.cc View 1 2 2 chunks +20 lines, -21 lines 0 comments Download
M content/app/android/content_jni_onload.cc View 1 3 chunks +17 lines, -17 lines 0 comments Download
M content/public/app/content_jni_onload.h View 1 1 chunk +7 lines, -12 lines 0 comments Download
M content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc View 1 3 chunks +6 lines, -12 lines 0 comments Download
M content/shell/android/linker_test_apk/chromium_linker_test_android.cc View 1 2 chunks +18 lines, -21 lines 0 comments Download
M content/shell/android/shell_library_loader.cc View 1 3 chunks +6 lines, -11 lines 0 comments Download
M testing/android/native_test_jni_onload.cc View 1 2 chunks +11 lines, -13 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
michaelbai
jam@ overall nyquist@ base/android David@ chrome/android
5 years, 10 months ago (2015-02-19 20:52:42 UTC) #2
michaelbai
gunsch@ chromecast torne@ android_webview
5 years, 10 months ago (2015-02-19 20:53:11 UTC) #3
michaelbai
nyquist@ also testing
5 years, 10 months ago (2015-02-19 20:54:06 UTC) #4
gunsch
On 2015/02/19 20:54:06, michaelbai wrote: > nyquist@ also testing can you also: "git cl try ...
5 years, 10 months ago (2015-02-19 20:56:25 UTC) #5
gunsch
On 2015/02/19 20:56:25, gunsch wrote: > On 2015/02/19 20:54:06, michaelbai wrote: > > nyquist@ also ...
5 years, 10 months ago (2015-02-19 20:56:48 UTC) #6
jam
https://codereview.chromium.org/935413004/diff/1/base/android/base_jni_onload.h File base/android/base_jni_onload.h (right): https://codereview.chromium.org/935413004/diff/1/base/android/base_jni_onload.h#newcode21 base/android/base_jni_onload.h:21: BASE_EXPORT bool OnJNIOnLoadRegisterJNI( nit: the JNI suffix seems redundant ...
5 years, 10 months ago (2015-02-19 22:17:56 UTC) #7
David Trainor- moved to gerrit
chrome/app/android lgtm
5 years, 10 months ago (2015-02-19 22:19:23 UTC) #8
michaelbai
@jam, PTAL https://codereview.chromium.org/935413004/diff/1/base/android/base_jni_onload.h File base/android/base_jni_onload.h (right): https://codereview.chromium.org/935413004/diff/1/base/android/base_jni_onload.h#newcode21 base/android/base_jni_onload.h:21: BASE_EXPORT bool OnJNIOnLoadRegisterJNI( On 2015/02/19 22:17:55, jam ...
5 years, 10 months ago (2015-02-20 00:58:36 UTC) #10
jam
lgtm https://codereview.chromium.org/935413004/diff/20001/android_webview/lib/main/webview_entry_point.cc File android_webview/lib/main/webview_entry_point.cc (right): https://codereview.chromium.org/935413004/diff/20001/android_webview/lib/main/webview_entry_point.cc#newcode5 android_webview/lib/main/webview_entry_point.cc:5: #include "android_webview/lib/main/webview_jni_onload.h" nit: why not just inline these ...
5 years, 10 months ago (2015-02-20 06:37:37 UTC) #11
michaelbai
David and @gunsch, The patch had significant changes since you reviewed, PTAL @nyquist, @torne could ...
5 years, 10 months ago (2015-02-20 17:00:17 UTC) #12
michaelbai
https://codereview.chromium.org/935413004/diff/20001/android_webview/lib/main/webview_entry_point.cc File android_webview/lib/main/webview_entry_point.cc (right): https://codereview.chromium.org/935413004/diff/20001/android_webview/lib/main/webview_entry_point.cc#newcode5 android_webview/lib/main/webview_entry_point.cc:5: #include "android_webview/lib/main/webview_jni_onload.h" On 2015/02/20 17:00:17, michaelbai wrote: > On ...
5 years, 10 months ago (2015-02-20 17:06:15 UTC) #13
gunsch
chromecast/ still lgtm, can you give the "cast_shell_apk" trybot another whirl for good measure? (it's ...
5 years, 10 months ago (2015-02-20 17:37:31 UTC) #14
Torne
LGTM. Sorry for not noticing the problem with the previous approach in the other CLs ...
5 years, 10 months ago (2015-02-20 18:24:10 UTC) #15
nyquist
https://codereview.chromium.org/935413004/diff/40001/base/android/base_jni_onload.cc File base/android/base_jni_onload.cc (right): https://codereview.chromium.org/935413004/diff/40001/base/android/base_jni_onload.cc#newcode31 base/android/base_jni_onload.cc:31: if (!i->Run(env)) Is there a reason why we don't ...
5 years, 10 months ago (2015-02-20 19:45:16 UTC) #17
michaelbai
PTAL, thanks https://codereview.chromium.org/935413004/diff/40001/base/android/base_jni_onload.cc File base/android/base_jni_onload.cc (right): https://codereview.chromium.org/935413004/diff/40001/base/android/base_jni_onload.cc#newcode31 base/android/base_jni_onload.cc:31: if (!i->Run(env)) On 2015/02/20 19:45:16, nyquist wrote: ...
5 years, 10 months ago (2015-02-20 19:59:20 UTC) #18
michaelbai
https://codereview.chromium.org/935413004/diff/40001/base/android/base_jni_onload.cc File base/android/base_jni_onload.cc (right): https://codereview.chromium.org/935413004/diff/40001/base/android/base_jni_onload.cc#newcode31 base/android/base_jni_onload.cc:31: if (!i->Run(env)) On 2015/02/20 19:59:20, michaelbai wrote: > On ...
5 years, 10 months ago (2015-02-20 20:11:13 UTC) #19
nyquist
ok. lgtm
5 years, 10 months ago (2015-02-20 21:43:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935413004/80001
5 years, 10 months ago (2015-02-20 21:45:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/935413004/100001
5 years, 10 months ago (2015-02-20 23:33:09 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-21 01:29:47 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-02-21 01:30:19 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5237cb89a8fc1a743b483bc2be5cdbe9669d9d86
Cr-Commit-Position: refs/heads/master@{#317479}

Powered by Google App Engine
This is Rietveld 408576698