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

Unified Diff: chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastApplication.java

Issue 490603002: Chromecast: initial checkin of Android-based cast shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added android DEPS (git cl presubmit doesn't check Java DEPS?) Created 6 years, 3 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: chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastApplication.java
diff --git a/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java b/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastApplication.java
similarity index 54%
copy from content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java
copy to chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastApplication.java
index 89e73621f41d4551193aa1a8f6ed7e1f05ff589e..1360dab2be6443a3d1f218cb8acf2a4245ab2217 100644
--- a/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java
+++ b/chromecast/shell/android/apk/src/org/chromium/chromecast/shell/CastApplication.java
@@ -2,29 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package org.chromium.chromium_linker_test_apk;
-
-import android.app.Application;
+package org.chromium.chromecast.shell;
import org.chromium.base.PathUtils;
+import org.chromium.content.app.ContentApplication;
import org.chromium.content.browser.ResourceExtractor;
/**
- * Application for testing the Chromium Linker
+ * Entry point for the Android cast shell application. Handles initialization of information that
+ * needs to be shared across the main activity and the child services created.
+ *
+ * Note that this gets run for each process, including sandboxed child render processes. Child
+ * processes don't need most of the full "setup" performed in CastBrowserHelper.java, but they do
+ * require a few basic pieces (found here).
*/
-public class ChromiumLinkerTestApplication extends Application {
+public class CastApplication extends ContentApplication {
- /**
- * icudtl.dat provides ICU (i18n library) with all the data for its
- * operation. We use to link it statically to our binary, but not any more
- * so that we have to install it along with other mandatory pak files.
- * See src/third_party/icu/README.chromium.
- */
- private static final String[] MANDATORY_PAK_FILES = new String[] {
- "content_shell.pak",
- "icudtl.dat"
- };
- private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromium_linker_test";
+ private static final String[] MANDATORY_PAK_FILES = new String[] {"cast_shell.pak"};
+ private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "cast_shell";
@Override
public void onCreate() {

Powered by Google App Engine
This is Rietveld 408576698