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

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

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/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);
-}

Powered by Google App Engine
This is Rietveld 408576698