Chromium Code Reviews| Index: shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java |
| diff --git a/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java b/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java |
| index 43e0c921eb08b7b427face0e568dbfa23b1121e0..d8d360cf3ab3b26ed7f4dfabb937c27922b4e66f 100644 |
| --- a/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java |
| +++ b/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java |
| @@ -56,7 +56,6 @@ public class MojoMain { |
| List<String> parametersList = new ArrayList<String>(); |
| // Program name. |
| - parametersList.add("mojo_shell"); |
| if (parameters != null) { |
| parametersList.addAll(Arrays.asList(parameters)); |
| } |
| @@ -74,9 +73,18 @@ public class MojoMain { |
| /** |
| * Starts the specified application in the specified context. |
| + * |
| + * @return <code>true</code> if an application has been launcher. |
|
sky
2014/12/17 16:44:04
launcher->launched
qsr
2014/12/18 14:21:35
Done.
|
| **/ |
| - static void start(final String appUrl) { |
| - nativeStart(appUrl); |
| + static boolean start() { |
| + return nativeStart(); |
| + } |
| + |
| + /** |
| + * Adds the given URL to the set of mojo application to run on start. |
|
sky
2014/12/17 16:44:04
application->applications
qsr
2014/12/18 14:21:35
Done.
|
| + */ |
| + static void addApplicationURL(String url) { |
| + nativeAddApplicationURL(url); |
| } |
| private static File getLocalAppsDir(Context context) { |
| @@ -90,6 +98,7 @@ public class MojoMain { |
| String[] parameters, |
| String bundledAppsDirectory); |
| - private static native void nativeStart(String appUrl); |
| + private static native boolean nativeStart(); |
| + private static native void nativeAddApplicationURL(String url); |
| } |