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 231328d2389f1e2289a21c6dc7d60f59c16ddf35..306f4551e82e67ddc7969a788faebc8b0c447059 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,15 +16,18 @@ import org.chromium.base.PathUtils; |
public class ChromiumLinkerTestApplication extends BaseChromiumApplication { |
private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "chromium_linker_test"; |
- @Override |
- protected void attachBaseContext(Context base) { |
- super.attachBaseContext(base); |
+ public ChromiumLinkerTestApplication() { |
+ super(); |
ContextUtils.initApplicationContext(this); |
} |
@Override |
public void onCreate() { |
super.onCreate(); |
- PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX); |
+ initializeApplicationParameters(this); |
+ } |
+ |
+ public static void initializeApplicationParameters(Context context) { |
+ PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, context); |
} |
} |