| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_browsertests_apk; | 5 package org.chromium.content_browsertests_apk; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 | 8 |
| 9 import org.chromium.base.BaseChromiumApplication; | 9 import org.chromium.base.BaseChromiumApplication; |
| 10 import org.chromium.base.ContextUtils; |
| 10 import org.chromium.base.PathUtils; | 11 import org.chromium.base.PathUtils; |
| 11 | 12 |
| 12 /** | 13 /** |
| 13 * A basic content browser tests {@link android.app.Application}. | 14 * A basic content browser tests {@link android.app.Application}. |
| 14 */ | 15 */ |
| 15 public class ContentBrowserTestsApplication extends BaseChromiumApplication { | 16 public class ContentBrowserTestsApplication extends BaseChromiumApplication { |
| 17 static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell"; |
| 16 | 18 |
| 17 static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell"; | 19 public ContentBrowserTestsApplication() { |
| 20 super(); |
| 21 ContextUtils.initApplicationContext(this); |
| 22 } |
| 18 | 23 |
| 19 @Override | 24 @Override |
| 20 public void onCreate() { | 25 public void onCreate() { |
| 21 super.onCreate(); | 26 super.onCreate(); |
| 22 initializeApplicationParameters(this); | 27 initializeApplicationParameters(this); |
| 23 } | 28 } |
| 24 | 29 |
| 25 public static void initializeApplicationParameters(Context context) { | 30 public static void initializeApplicationParameters(Context context) { |
| 26 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, c
ontext); | 31 PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, c
ontext); |
| 27 } | 32 } |
| 28 | |
| 29 } | 33 } |
| OLD | NEW |