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

Unified Diff: third_party/go/src/golang.org/x/mobile/app/Go.java

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 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: third_party/go/src/golang.org/x/mobile/app/Go.java
diff --git a/third_party/go/src/golang.org/x/mobile/app/Go.java b/third_party/go/src/golang.org/x/mobile/app/Go.java
deleted file mode 100644
index 3502d4ba3942d1d95904748e630f4d43bc3a482f..0000000000000000000000000000000000000000
--- a/third_party/go/src/golang.org/x/mobile/app/Go.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package go;
-
-import android.content.Context;
-import android.os.Looper;
-import android.util.Log;
-
-// Go is an entry point for libraries compiled in Go.
-// In an app's Application.onCreate, call:
-//
-// Go.init(getApplicationContext());
-//
-// When the function returns, it is safe to start calling
-// Go code.
-public final class Go {
- // init loads libgojni.so and starts the runtime.
- public static void init(final Context ctx) {
- if (Looper.myLooper() != Looper.getMainLooper()) {
- Log.wtf("Go", "Go.init must be called from main thread (looper="+Looper.myLooper().toString()+")");
- }
- if (running) {
- return;
- }
- running = true;
-
- // TODO(crawshaw): context.registerComponentCallbacks for runtime.GC
-
- System.loadLibrary("gojni");
-
- new Thread("GoMain") {
- public void run() {
- Go.run(ctx);
- }
- }.start();
-
- Go.waitForRun();
-
- new Thread("GoReceive") {
- public void run() { Seq.receive(); }
- }.start();
- }
-
- private static boolean running = false;
-
- private static native void run(Context ctx);
- private static native void waitForRun();
-}
« no previous file with comments | « third_party/go/src/golang.org/x/mobile/README.md ('k') | third_party/go/src/golang.org/x/mobile/app/android.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698