Index: chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastApplication.java |
diff --git a/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastApplication.java b/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastApplication.java |
index fce2fb09568c08ccfd0aa00eb461c1ac3c5fa31f..de9dddaecfb165dbc4872281210c6a59bdafef42 100644 |
--- a/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastApplication.java |
+++ b/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastApplication.java |
@@ -9,7 +9,6 @@ import android.os.Build; |
import android.util.Log; |
import org.chromium.base.CommandLine; |
-import org.chromium.base.ContextUtils; |
import org.chromium.base.PathUtils; |
import org.chromium.content.app.ContentApplication; |
@@ -28,15 +27,13 @@ public class CastApplication extends ContentApplication { |
private static final String COMMAND_LINE_FILE = "/data/local/tmp/castshell-command-line"; |
@Override |
- protected void attachBaseContext(Context base) { |
- super.attachBaseContext(base); |
- ContextUtils.initApplicationContext(this); |
- } |
- |
- @Override |
public void onCreate() { |
super.onCreate(); |
- PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); |
+ initializeApplicationParameters(this); |
+ } |
+ |
+ public static void initializeApplicationParameters(Context context) { |
+ PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, context); |
} |
@Override |