Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.chromium_linker_test_apk; | 5 package org.chromium.chromium_linker_test_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 /** | 12 /** |
| 13 * Application for testing the Chromium Linker | 13 * Application for testing the Chromium Linker |
| 14 */ | 14 */ |
| 15 public class ChromiumLinkerTestApplication extends Application { | 15 public class ChromiumLinkerTestApplication extends Application { |
| 16 | 16 |
| 17 private static final String[] MANDATORY_PAK_FILES = new String[] {"content_s hell.pak"}; | 17 private static final String[] MANDATORY_PAK_FILES = new String[] { |
| 18 "content_shell.pak", | |
| 19 "icudtl.dat" | |
|
Andrew Hayden (chromium.org)
2014/02/25 13:52:56
Again would be a good idea to have a quick comment
| |
| 20 }; | |
| 18 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromium_linker _test"; | 21 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromium_linker _test"; |
| 19 | 22 |
| 20 @Override | 23 @Override |
| 21 public void onCreate() { | 24 public void onCreate() { |
| 22 super.onCreate(); | 25 super.onCreate(); |
| 23 initializeApplicationParameters(); | 26 initializeApplicationParameters(); |
| 24 } | 27 } |
| 25 | 28 |
| 26 public static void initializeApplicationParameters() { | 29 public static void initializeApplicationParameters() { |
| 27 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); | 30 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); |
| 28 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); | 31 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); |
| 29 } | 32 } |
| 30 | 33 |
| 31 } | 34 } |
| OLD | NEW |