| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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; | 5 package org.chromium.content_shell; |
| 6 | 6 |
| 7 import android.app.Application; | 7 import android.app.Application; |
| 8 import org.chromium.content.app.LibraryLoader; | 8 import org.chromium.content.app.LibraryLoader; |
| 9 import org.chromium.content.browser.ResourceExtractor; |
| 9 | 10 |
| 10 /** | 11 /** |
| 11 * 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 |
| 12 * to be shared across the main activity and the sandbox services created. | 13 * to be shared across the main activity and the sandbox services created. |
| 13 */ | 14 */ |
| 14 public class ContentShellApplication extends Application { | 15 public class ContentShellApplication extends Application { |
| 15 | 16 |
| 16 // TODO(jrg): do not downstream this filename! | |
| 17 private static final String NATIVE_LIBRARY = "content_shell_content_view"; | 17 private static final String NATIVE_LIBRARY = "content_shell_content_view"; |
| 18 private static final String[] MANDATORY_PAK_FILES = new String[] {"content_s
hell.pak"}; |
| 18 | 19 |
| 19 @Override | 20 @Override |
| 20 public void onCreate() { | 21 public void onCreate() { |
| 21 super.onCreate(); | 22 super.onCreate(); |
| 22 // TODO(tedchoc): Initialize the .pak files to load | 23 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); |
| 23 LibraryLoader.setLibraryToLoad(NATIVE_LIBRARY); | 24 LibraryLoader.setLibraryToLoad(NATIVE_LIBRARY); |
| 24 } | 25 } |
| 25 | 26 |
| 26 } | 27 } |
| OLD | NEW |