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

Unified Diff: components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.java

Issue 2406093002: Fix monochrome not booting issue (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 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);
}
}

Powered by Google App Engine
This is Rietveld 408576698