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

Unified Diff: mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java

Issue 772393003: Android handler: inject the application loading part from the shell .so. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Address Ben's comment. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java
diff --git a/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java b/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java
index 56fec9962e2c182dc0d09ab646542df6647f3560..b74f03a30f16596bfebff012c36a55f9a2d88608 100644
--- a/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java
+++ b/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/Bootstrap.java
@@ -22,21 +22,25 @@ public class Bootstrap implements Runnable {
private final File mBootstrapNativeLibrary;
private final File mApplicationNativeLibrary;
private final int mHandle;
+ private final long mRunApplicationPtr;
public Bootstrap(Context context, File bootstrapNativeLibrary, File applicationNativeLibrary,
- Integer handle) {
+ Integer handle, Long runApplicationPtr) {
mContext = context;
mBootstrapNativeLibrary = bootstrapNativeLibrary;
mApplicationNativeLibrary = applicationNativeLibrary;
mHandle = handle;
+ mRunApplicationPtr = runApplicationPtr;
}
@Override
public void run() {
System.load(mBootstrapNativeLibrary.getAbsolutePath());
System.load(mApplicationNativeLibrary.getAbsolutePath());
- nativeBootstrap(mContext, mApplicationNativeLibrary.getAbsolutePath(), mHandle);
+ nativeBootstrap(mContext, mApplicationNativeLibrary.getAbsolutePath(), mHandle,
+ mRunApplicationPtr);
}
- native void nativeBootstrap(Context context, String libraryPath, int handle);
+ native void nativeBootstrap(Context context, String libraryPath, int handle,
+ long runApplicationPtr);
}

Powered by Google App Engine
This is Rietveld 408576698