1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.chromium.content_shell_apk;
7 import org.chromium.base.PathUtils;
8 import org.chromium.base.ResourceExtractor;
10 import org.chromium.content.app.ContentApplication;
13 * Entry point for the content shell application. Handles initialization of information that needs
14 * to be shared across the main activity and the child services created.
16 public class ContentShellApplication extends ContentApplication {
18 * icudtl.dat provides ICU (i18n library) with all the data for its
19 * operation. We use to link it statically to our binary, but not any more
20 * so that we have to install it along with other mandatory pak files.
21 * See src/third_party/icu/README.chromium.
23 private static final String[] MANDATORY_PAK_FILES = new String[] {
27 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell";
30 public void onCreate() {
32 initializeApplicationParameters();
35 public static void initializeApplicationParameters() {
36 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES);
37 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);