Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: content/shell/android/java/src/org/chromium/content_shell/ContentShellApplication.java

Issue 10693157: Add pak file support for content shell and android apks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698