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

Issue 772393003: Android handler: inject the application loading part from the shell .so. (Closed)

Created:
6 years ago by ppi
Modified:
6 years ago
Reviewers:
qsr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Android handler: inject the application loading part from the shell .so. To properly set thunks in the application being loaded, we need make_thunks() to be called from an .so that has them set itself. This patch extracts the application loading logic from the bootstrapping library to the Mojo Shell .so. When an application is being bootstrapped, we inject the loading function by passing a function pointer. BUG=436508 R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/78ab413bd886107700215fe0acdc3e1adb11aae4

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Rebase. #

Patch Set 3 : Address Ben's comment. #

Total comments: 2

Patch Set 4 : Address Ben's comment. #

Patch Set 5 : Fix a typo. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -57 lines) Patch
M examples/device_name/device_name.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M mojo/shell/BUILD.gn View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download
M mojo/shell/android/android_handler.cc View 2 chunks +52 lines, -8 lines 0 comments Download
M mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/AndroidHandler.java View 1 2 chunks +12 lines, -3 lines 0 comments Download
M mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java View 1 chunk +7 lines, -3 lines 0 comments Download
M mojo/shell/android/bootstrap.cc View 1 chunk +6 lines, -42 lines 0 comments Download
A mojo/shell/android/run_android_application_function.h View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
ppi
ptal https://codereview.chromium.org/772393003/diff/60001/examples/device_name/device_name.cc File examples/device_name/device_name.cc (right): https://codereview.chromium.org/772393003/diff/60001/examples/device_name/device_name.cc#newcode63 examples/device_name/device_name.cc:63: // Call a core function to demonstrate that ...
6 years ago (2014-12-03 12:30:24 UTC) #5
qsr
https://codereview.chromium.org/772393003/diff/60001/examples/device_name/device_name.cc File examples/device_name/device_name.cc (right): https://codereview.chromium.org/772393003/diff/60001/examples/device_name/device_name.cc#newcode63 examples/device_name/device_name.cc:63: // Call a core function to demonstrate that the ...
6 years ago (2014-12-03 12:38:33 UTC) #6
ppi
https://codereview.chromium.org/772393003/diff/60001/examples/device_name/device_name.cc File examples/device_name/device_name.cc (right): https://codereview.chromium.org/772393003/diff/60001/examples/device_name/device_name.cc#newcode63 examples/device_name/device_name.cc:63: // Call a core function to demonstrate that the ...
6 years ago (2014-12-03 13:06:05 UTC) #7
qsr
https://codereview.chromium.org/772393003/diff/100001/mojo/shell/BUILD.gn File mojo/shell/BUILD.gn (right): https://codereview.chromium.org/772393003/diff/100001/mojo/shell/BUILD.gn#newcode161 mojo/shell/BUILD.gn:161: "android/run_android_application_function.h", The same file should never be in 2 ...
6 years ago (2014-12-03 13:27:28 UTC) #8
ppi
https://codereview.chromium.org/772393003/diff/100001/mojo/shell/BUILD.gn File mojo/shell/BUILD.gn (right): https://codereview.chromium.org/772393003/diff/100001/mojo/shell/BUILD.gn#newcode161 mojo/shell/BUILD.gn:161: "android/run_android_application_function.h", On 2014/12/03 13:27:28, qsr wrote: > The same ...
6 years ago (2014-12-03 14:27:53 UTC) #9
qsr
lgtm
6 years ago (2014-12-03 15:44:00 UTC) #10
ppi
6 years ago (2014-12-03 15:49:41 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 (id:160001) manually as
78ab413bd886107700215fe0acdc3e1adb11aae4.

Powered by Google App Engine
This is Rietveld 408576698