OLD | NEW |
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_browsertests_apk; | 5 package org.chromium.content_browsertests_apk; |
6 | 6 |
7 import android.app.Application; | 7 import android.app.Application; |
8 | 8 |
9 import org.chromium.base.PathUtils; | 9 import org.chromium.base.PathUtils; |
10 import org.chromium.content.browser.ResourceExtractor; | 10 import org.chromium.content.browser.ResourceExtractor; |
11 | 11 |
12 public class ContentBrowserTestsApplication extends Application { | 12 public class ContentBrowserTestsApplication extends Application { |
13 | 13 |
14 private static final String[] MANDATORY_PAK_FILES = new String[] {"content_s
hell.pak"}; | 14 private static final String[] MANDATORY_PAK_FILES = new String[] { |
| 15 "content_shell.pak", |
| 16 "icudtl.dat" |
| 17 }; |
15 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell"; | 18 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell"; |
16 | 19 |
17 @Override | 20 @Override |
18 public void onCreate() { | 21 public void onCreate() { |
19 super.onCreate(); | 22 super.onCreate(); |
20 initializeApplicationParameters(); | 23 initializeApplicationParameters(); |
21 } | 24 } |
22 | 25 |
23 public static void initializeApplicationParameters() { | 26 public static void initializeApplicationParameters() { |
24 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); | 27 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); |
25 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); | 28 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); |
26 } | 29 } |
27 | 30 |
28 } | 31 } |
OLD | NEW |