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

Unified Diff: sky/shell/android/org/domokit/sky/shell/SkyMain.java

Issue 1217573005: Do not use android specific API in mojo/java. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Do not use android APIs Created 5 years, 6 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
« no previous file with comments | « sky/shell/android/library_loader.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/android/org/domokit/sky/shell/SkyMain.java
diff --git a/sky/shell/android/org/domokit/sky/shell/SkyMain.java b/sky/shell/android/org/domokit/sky/shell/SkyMain.java
index 9966979384d79353700153a9f209ee760cb69989..60434e36e82424e94052e2d5938c273fa317e9b9 100644
--- a/sky/shell/android/org/domokit/sky/shell/SkyMain.java
+++ b/sky/shell/android/org/domokit/sky/shell/SkyMain.java
@@ -9,6 +9,7 @@ import android.util.Log;
import org.chromium.base.JNINamespace;
import org.chromium.base.ResourceExtractor;
+import org.chromium.mojo.system.impl.CoreImpl;
/**
* A class to intialize the native code.
@@ -34,6 +35,8 @@ public class SkyMain {
resourceExtractor.startExtractingResources();
resourceExtractor.waitForCompletion();
nativeInit(applicationContext);
+ // Create the mojo run loop.
+ CoreImpl.getInstance().createDefaultRunLoop();
sInitialized = true;
} catch (Exception e) {
Log.e(TAG, "SkyMain initialization failed.", e);
« no previous file with comments | « sky/shell/android/library_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698