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

Unified Diff: content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.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/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java
diff --git a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java
index bf0bb6fbea2d5df43c46c83878447dbccc29628c..4eeb69ede91b76f40ecb2741ce58c6148bfdaae6 100644
--- a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java
+++ b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java
@@ -5,6 +5,7 @@
package org.chromium.content_shell_apk;
import org.chromium.base.CommandLine;
+import org.chromium.base.ContextUtils;
import org.chromium.base.PathUtils;
import org.chromium.base.annotations.SuppressFBWarnings;
import org.chromium.content.app.ContentApplication;
@@ -18,6 +19,11 @@ public class ContentShellApplication extends ContentApplication {
public static final String COMMAND_LINE_FILE = "/data/local/tmp/content-shell-command-line";
private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "content_shell";
+ public ContentShellApplication() {
+ super();
+ ContextUtils.initApplicationContext(this);
+ }
+
@Override
public void onCreate() {
super.onCreate();

Powered by Google App Engine
This is Rietveld 408576698