Index: mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java |
diff --git a/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java b/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java |
deleted file mode 100644 |
index 2503eb087476c5a510515aa22595e90e80c352c8..0000000000000000000000000000000000000000 |
--- a/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java |
+++ /dev/null |
@@ -1,54 +0,0 @@ |
-// Copyright 2013 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-package org.chromium.mojo_shell_apk; |
- |
-import android.content.Context; |
- |
-import org.chromium.base.JNINamespace; |
- |
-import java.util.ArrayList; |
-import java.util.Arrays; |
-import java.util.List; |
- |
-/** |
- * A placeholder class to call native functions. |
- **/ |
-@JNINamespace("mojo") |
-public class MojoMain { |
- /** |
- * A guard flag for calling nativeInit() only once. |
- **/ |
- private static boolean sInitialized = false; |
- |
- /** |
- * Initializes the native system. |
- **/ |
- static void ensureInitialized(Context applicationContext, String[] parameters) { |
- if (sInitialized) |
- return; |
- List<String> parametersList = new ArrayList<String>(); |
- // Program name. |
- parametersList.add("mojo_shell"); |
- if (parameters != null) { |
- parametersList.addAll(Arrays.asList(parameters)); |
- } |
- nativeInit(applicationContext, parametersList.toArray(new String[parametersList.size()])); |
- sInitialized = true; |
- } |
- |
- /** |
- * Starts the specified application in the specified context. |
- **/ |
- static void start(final String appUrl) { |
- nativeStart(appUrl); |
- } |
- |
- /** |
- * Initializes the native system. This API should be called only once per process. |
- **/ |
- private static native void nativeInit(Context context, String[] parameters); |
- |
- private static native void nativeStart(String appUrl); |
-} |