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); |
} |
} |