| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.blimp; | 5 package org.chromium.blimp; |
| 6 | 6 |
| 7 import android.app.Application; | 7 import android.app.Application; |
| 8 | 8 |
| 9 import org.chromium.base.BaseChromiumApplication; | 9 import org.chromium.base.BaseChromiumApplication; |
| 10 import org.chromium.base.CommandLineInitUtil; | 10 import org.chromium.base.CommandLineInitUtil; |
| 11 import org.chromium.base.ContextUtils; | 11 import org.chromium.base.ContextUtils; |
| 12 import org.chromium.base.PathUtils; | 12 import org.chromium.base.PathUtils; |
| 13 import org.chromium.base.ResourceExtractor; | 13 import org.chromium.base.ResourceExtractor; |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * The {@link Application} for the Blimp client. | 16 * The {@link Application} for the Blimp client. |
| 17 */ | 17 */ |
| 18 public class BlimpApplication extends BaseChromiumApplication { | 18 public class BlimpApplication extends BaseChromiumApplication { |
| 19 private static final String COMMAND_LINE_FILE = "blimp-command-line"; | 19 private static final String COMMAND_LINE_FILE = "blimp-command-line"; |
| 20 private static final String[] MANDATORY_PAK_FILES = new String[] {}; | |
| 21 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "blimp"; | 20 private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "blimp"; |
| 22 | 21 |
| 22 public BlimpApplication() { |
| 23 super(); |
| 24 ContextUtils.initApplicationContext(this); |
| 25 } |
| 26 |
| 23 @Override | 27 @Override |
| 24 public void onCreate() { | 28 public void onCreate() { |
| 25 super.onCreate(); | 29 super.onCreate(); |
| 26 ContextUtils.initApplicationContext(this); | |
| 27 ResourceExtractor.setResourcesToExtract(new ResourceExtractor.ResourceEn
try[0]); | 30 ResourceExtractor.setResourcesToExtract(new ResourceExtractor.ResourceEn
try[0]); |
| 28 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, t
his); | 31 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, t
his); |
| 29 initCommandLine(); | 32 initCommandLine(); |
| 30 } | 33 } |
| 31 | 34 |
| 32 @Override | 35 @Override |
| 33 public void initCommandLine() { | 36 public void initCommandLine() { |
| 34 CommandLineInitUtil.initCommandLine(this, COMMAND_LINE_FILE); | 37 CommandLineInitUtil.initCommandLine(this, COMMAND_LINE_FILE); |
| 35 } | 38 } |
| 36 } | 39 } |
| OLD | NEW |