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

Unified Diff: sky/shell/apk/src/org/domokit/sky/shell/SkyMain.java

Issue 936883002: Connect Sky and Ganesh in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address review comments Created 5 years, 10 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: sky/shell/apk/src/org/domokit/sky/shell/SkyMain.java
diff --git a/sky/shell/apk/src/org/domokit/sky/shell/SkyMain.java b/sky/shell/apk/src/org/domokit/sky/shell/SkyMain.java
index 0f373e4026c88e9ebfb28003c2be7ec313b63d35..78cd7347c0794be8b95a3f2597240537a4785826 100644
--- a/sky/shell/apk/src/org/domokit/sky/shell/SkyMain.java
+++ b/sky/shell/apk/src/org/domokit/sky/shell/SkyMain.java
@@ -8,6 +8,7 @@ import android.content.Context;
import android.util.Log;
import org.chromium.base.JNINamespace;
+import org.chromium.base.ResourceExtractor;
/**
* A class to intialize the native code.
@@ -28,6 +29,9 @@ public class SkyMain {
if (sInitialized)
return;
try {
+ ResourceExtractor resourceExtractor = ResourceExtractor.get(applicationContext);
+ resourceExtractor.startExtractingResources();
+ resourceExtractor.waitForCompletion();
nativeInit(applicationContext);
sInitialized = true;
} catch (Exception e) {
@@ -36,15 +40,5 @@ public class SkyMain {
}
}
- /**
- * Starts the specified application in the specified context.
- *
- * @return <code>true</code> if an application has been launched.
- **/
- static boolean start() {
- return nativeStart();
- }
-
private static native void nativeInit(Context context);
- private static native boolean nativeStart();
}

Powered by Google App Engine
This is Rietveld 408576698