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

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

Issue 2412623002: Reland "Move PathUtils to use ContextUtils." (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 de9dddaecfb165dbc4872281210c6a59bdafef42..fce2fb09568c08ccfd0aa00eb461c1ac3c5fa31f 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,6 +9,7 @@ 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;
@@ -27,13 +28,15 @@ public class CastApplication extends ContentApplication {
private static final String COMMAND_LINE_FILE = "/data/local/tmp/castshell-command-line";
@Override
- public void onCreate() {
- super.onCreate();
- initializeApplicationParameters(this);
+ protected void attachBaseContext(Context base) {
+ super.attachBaseContext(base);
+ ContextUtils.initApplicationContext(this);
}
- public static void initializeApplicationParameters(Context context) {
- PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, context);
+ @Override
+ public void onCreate() {
+ super.onCreate();
+ PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698