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

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

Issue 23522032: Change method of activity tracking done in ActivityStatus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually remove isActive this time Created 7 years, 3 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_apk; 5 package org.chromium.content_shell_apk;
6 6
7 import android.app.Application; 7 import org.chromium.base.ChromiumApplication;
8
9 import org.chromium.base.PathUtils; 8 import org.chromium.base.PathUtils;
10 import org.chromium.content.app.LibraryLoader;
11 import org.chromium.content.browser.ResourceExtractor; 9 import org.chromium.content.browser.ResourceExtractor;
12 10
13 /** 11 /**
14 * 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
15 * to be shared across the main activity and the child services created. 13 * to be shared across the main activity and the child services created.
16 */ 14 */
17 public class ContentShellApplication extends Application { 15 public class ContentShellApplication extends ChromiumApplication {
18 16
19 private static final String[] MANDATORY_PAK_FILES = new String[] {"content_s hell.pak"}; 17 private static final String[] MANDATORY_PAK_FILES = new String[] {"content_s hell.pak"};
20 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell"; 18 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell";
21 19
22 @Override 20 @Override
23 public void onCreate() { 21 public void onCreate() {
24 super.onCreate(); 22 super.onCreate();
25 initializeApplicationParameters(); 23 initializeApplicationParameters();
26 } 24 }
27 25
28 public static void initializeApplicationParameters() { 26 public static void initializeApplicationParameters() {
29 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES); 27 ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES);
30 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); 28 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
31 } 29 }
32 30
33 } 31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698