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

Unified Diff: components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.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: components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.java
diff --git a/components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.java b/components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.java
index d0bf1af8c9cb560d9a902262f06d323c080fd28e..fe8568216e7fdb870a8e824a09f007b54cbb4d84 100644
--- a/components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.java
+++ b/components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.java
@@ -17,13 +17,14 @@ public class ComponentsBrowserTestsApplication extends BaseChromiumApplication {
static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "components_shell";
@Override
- public void onCreate() {
- super.onCreate();
+ protected void attachBaseContext(Context base) {
+ super.attachBaseContext(base);
ContextUtils.initApplicationContext(this);
- initializeApplicationParameters(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);
}
}

Powered by Google App Engine
This is Rietveld 408576698