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

Side by Side Diff: content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java

Issue 156333002: Enable icu_use_data_file_flag on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content_shell_apk; 5 package org.chromium.content_shell_apk;
6 6
7 import org.chromium.base.PathUtils; 7 import org.chromium.base.PathUtils;
8 import org.chromium.content.app.ContentApplication; 8 import org.chromium.content.app.ContentApplication;
9 import org.chromium.content.browser.ResourceExtractor; 9 import org.chromium.content.browser.ResourceExtractor;
10 10
11 /** 11 /**
12 * Entry point for the content shell application. Handles initialization of inf ormation that needs 12 * Entry point for the content shell application. Handles initialization of inf ormation that needs
13 * to be shared across the main activity and the child services created. 13 * to be shared across the main activity and the child services created.
14 */ 14 */
15 public class ContentShellApplication extends ContentApplication { 15 public class ContentShellApplication extends ContentApplication {
16 16 /**
17 private static final String[] MANDATORY_PAK_FILES = new String[] {"content_s hell.pak"}; 17 * icudtl.dat provides ICU (i18n library) with all the data for its
18 * operation. We use to link it statically to our binary, but not any more
19 * so that we have to install it along with other mandatory pak files.
20 * See src/third_party/icu/README.chromium.
21 */
22 private static final String[] MANDATORY_PAK_FILES = new String[] {
23 "content_shell.pak",
24 "icudtl.dat"
25 };
18 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell"; 26 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell";
19 27
20 @Override 28 @Override
21 public void onCreate() { 29 public void onCreate() {
22 super.onCreate(); 30 super.onCreate();
23 initializeApplicationParameters(); 31 initializeApplicationParameters();
24 } 32 }
25 33
26 public static void initializeApplicationParameters() { 34 public static void initializeApplicationParameters() {
27 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); 35 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES);
28 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); 36 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
29 } 37 }
30 38
31 } 39 }
OLDNEW
« no previous file with comments | « content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698