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

Unified Diff: content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java

Issue 2247143004: Remove app context init from LibraryLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix per review. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java
diff --git a/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java b/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java
index a6063c141a6fee2540234520f652f04655d4b282..e364d45d2ff24d426d0a2257a9ee84a11cb84c26 100644
--- a/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java
+++ b/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java
@@ -7,15 +7,20 @@ package org.chromium.content_browsertests_apk;
import android.content.Context;
import org.chromium.base.BaseChromiumApplication;
+import org.chromium.base.ContextUtils;
import org.chromium.base.PathUtils;
/**
* A basic content browser tests {@link android.app.Application}.
*/
public class ContentBrowserTestsApplication extends BaseChromiumApplication {
-
static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell";
+ public ContentBrowserTestsApplication() {
+ super();
+ ContextUtils.initApplicationContext(this);
+ }
+
@Override
public void onCreate() {
super.onCreate();
@@ -25,5 +30,4 @@ public class ContentBrowserTestsApplication extends BaseChromiumApplication {
public static void initializeApplicationParameters(Context context) {
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, context);
}
-
}

Powered by Google App Engine
This is Rietveld 408576698