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