Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / shell / android / linker_test_apk / src / org / chromium / chromium_linker_test_apk / ChromiumLinkerTestApplication.java
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
3 // found in the LICENSE file.
4
5 package org.chromium.chromium_linker_test_apk;
6
7 import android.app.Application;
8
9 import org.chromium.base.PathUtils;
10 import org.chromium.content.browser.ResourceExtractor;
11
12 /**
13  * Application for testing the Chromium Linker
14  */
15 public class ChromiumLinkerTestApplication extends Application {
16
17     private static final String[] MANDATORY_PAK_FILES = new String[] {"content_shell.pak"};
18     private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromium_linker_test";
19
20     @Override
21     public void onCreate() {
22         super.onCreate();
23         initializeApplicationParameters();
24     }
25
26     public static void initializeApplicationParameters() {
27         ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES);
28         PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
29     }
30
31 }