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

Unified Diff: chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastApplication.java

Issue 2406093002: Fix monochrome not booting issue (Closed)
Patch Set: Created 4 years, 2 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: 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

Powered by Google App Engine
This is Rietveld 408576698