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 fe8568216e7fdb870a8e824a09f007b54cbb4d84..d0bf1af8c9cb560d9a902262f06d323c080fd28e 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,14 +17,13 @@ public class ComponentsBrowserTestsApplication extends BaseChromiumApplication { |
static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "components_shell"; |
@Override |
- protected void attachBaseContext(Context base) { |
- super.attachBaseContext(base); |
+ public void onCreate() { |
+ super.onCreate(); |
ContextUtils.initApplicationContext(this); |
+ initializeApplicationParameters(this); |
} |
- @Override |
- public void onCreate() { |
- super.onCreate(); |
- PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); |
+ public static void initializeApplicationParameters(Context context) { |
+ PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, context); |
} |
} |