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

Unified Diff: content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.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: content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java
diff --git a/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java b/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java
index 306f4551e82e67ddc7969a788faebc8b0c447059..231328d2389f1e2289a21c6dc7d60f59c16ddf35 100644
--- a/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java
+++ b/content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java
@@ -16,18 +16,15 @@ import org.chromium.base.PathUtils;
public class ChromiumLinkerTestApplication extends BaseChromiumApplication {
private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromium_linker_test";
- public ChromiumLinkerTestApplication() {
- super();
+ @Override
+ protected void attachBaseContext(Context base) {
+ super.attachBaseContext(base);
ContextUtils.initApplicationContext(this);
}
@Override
public void onCreate() {
super.onCreate();
- initializeApplicationParameters(this);
- }
-
- public static void initializeApplicationParameters(Context context) {
- PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, context);
+ PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
}
}

Powered by Google App Engine
This is Rietveld 408576698