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

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

Issue 965493002: Introduce Stocks.apk (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
deleted file mode 100644
index 78cd7347c0794be8b95a3f2597240537a4785826..0000000000000000000000000000000000000000
--- a/sky/shell/apk/src/org/domokit/sky/shell/SkyMain.java
+++ /dev/null
@@ -1,44 +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.domokit.sky.shell;
-
-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.
- **/
-@JNINamespace("sky::shell")
-public class SkyMain {
- private static final String TAG = "SkyMain";
-
- /**
- * A guard flag for calling nativeInit() only once.
- **/
- private static boolean sInitialized = false;
-
- /**
- * Initializes the native system.
- **/
- static void ensureInitialized(Context applicationContext) {
- if (sInitialized)
- return;
- try {
- ResourceExtractor resourceExtractor = ResourceExtractor.get(applicationContext);
- resourceExtractor.startExtractingResources();
- resourceExtractor.waitForCompletion();
- nativeInit(applicationContext);
- sInitialized = true;
- } catch (Exception e) {
- Log.e(TAG, "SkyMain initialization failed.", e);
- throw new RuntimeException(e);
- }
- }
-
- private static native void nativeInit(Context context);
-}

Powered by Google App Engine
This is Rietveld 408576698