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

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

Issue 687433002: Remove mojo/shell and (most) service implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove mojo/gles2, disable mojo apps in component build Created 6 years, 2 months 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 7a27003feadcaf0fb2ec59a38265378c4cba0e29..0000000000000000000000000000000000000000
--- a/mojo/shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java
+++ /dev/null
@@ -1,43 +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;
-
-/**
- * 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.
- **/
- public static void ensureInitialized(Context context) {
- if (sInitialized)
- return;
- nativeInit(context);
- sInitialized = true;
- }
-
- /**
- * Starts the specified application in the specified context.
- **/
- public 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);
- private static native void nativeStart(String appUrl);
-};

Powered by Google App Engine
This is Rietveld 408576698