|
This is the first patch to separate JNI registration with initialization, currently, we have JNI_OnLoad defined multiple places which has a lot of
duplicated code and JNI registration and initialization are mixed;
This patch
- Added JNIOnLoadDelegate class for each component specific initialization.
- Added base::android::OnJNIOnLoad() to call a list of delegates
- Migrate testing, content_shell, chrome_shell.
BUG= 447393
TBR=thakis
Committed: https://crrev.com/842c972d5011ed671d2486deee78ae7640b0cca6
Cr-Commit-Position: refs/heads/master@{#313592}
Total comments: 7
Total comments: 8
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+421 lines, -110 lines) |
Patch |
|
M |
base/BUILD.gn
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
A |
base/android/base_jni_onload.h
|
View
|
1
2
3
4
5
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
|
A |
base/android/base_jni_onload.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
|
A |
base/android/jni_onload_delegate.h
|
View
|
1
2
3
4
5
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/base.gypi
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/BUILD.gn
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/android/BUILD.gn
|
View
|
1
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/app/android/chrome_android_initializer.h
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
chrome/app/android/chrome_android_initializer.cc
|
View
|
|
1 chunk |
+3 lines, -14 lines |
0 comments
|
Download
|
|
D |
chrome/app/android/chrome_jni_onload.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+28 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_android.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_shell.gypi
|
View
|
1
2
3
4
5
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/app/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
content/app/android/content_jni_onload.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/content_app.gypi
|
View
|
1
2
3
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/content_shell.gypi
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
content/content_tests.gypi
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/app/BUILD.gn
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
content/public/app/content_jni_onload.h
|
View
|
1
2
3
4
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/shell/android/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
A |
content/shell/android/browsertests_apk/content_browser_tests_android.h
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/shell/android/browsertests_apk/content_browser_tests_android.cc
|
View
|
|
2 chunks |
+4 lines, -26 lines |
0 comments
|
Download
|
|
A |
content/shell/android/browsertests_apk/content_browser_tests_jni_onload.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
|
D |
content/shell/android/shell_library_loader.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+23 lines, -18 lines |
0 comments
|
Download
|
|
M |
testing/android/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
testing/android/native_test.gyp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/android/native_test_jni_onload.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/android/native_test_launcher.h
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
testing/android/native_test_launcher.cc
|
View
|
1
|
3 chunks |
+15 lines, -26 lines |
0 comments
|
Download
|
Total messages: 23 (3 generated)
|