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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java

Issue 2297193003: Extract browser shared class initialization from ChromeApplication. (Closed)
Patch Set: Moar test fixes Created 4 years, 3 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: chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java b/chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java
index 67bdfd845f42cfec77e86b279e96ba294bbd50d2..f762e04f4a3420f89d06a177c472c0fb93e08821 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java
@@ -119,10 +119,9 @@ public class ChromeBrowserInitializer {
public void handleSynchronousStartup() throws ProcessInitException {
assert ThreadUtils.runningOnUiThread() : "Tried to start the browser on the wrong thread";
- ChromeBrowserInitializer initializer = ChromeBrowserInitializer.getInstance(mApplication);
BrowserParts parts = new EmptyBrowserParts();
- initializer.handlePreNativeStartup(parts);
- initializer.handlePostNativeStartup(false, parts);
+ handlePreNativeStartup(parts);
+ handlePostNativeStartup(false, parts);
}
/**
@@ -134,6 +133,7 @@ public class ChromeBrowserInitializer {
public void handlePreNativeStartup(final BrowserParts parts) {
assert ThreadUtils.runningOnUiThread() : "Tried to start the browser on the wrong thread";
+ ProcessInitializationHandler.getInstance().initializePreNative();
preInflationStartup();
parts.preInflationStartup();
if (parts.isActivityFinishing()) return;

Powered by Google App Engine
This is Rietveld 408576698