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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/prerender/ChromePrerenderService.java

Issue 1521013002: Make the ChromeBrowserInitializer the only way to start the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yfriedman@ comment Created 5 years 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/prerender/ChromePrerenderService.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/prerender/ChromePrerenderService.java b/chrome/android/java/src/org/chromium/chrome/browser/prerender/ChromePrerenderService.java
index a700dfdb5efa584b5b33f98527fc88be425eda11..a258b7e44f523b384a4f25d443b07e9c0173c442 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/prerender/ChromePrerenderService.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/prerender/ChromePrerenderService.java
@@ -19,11 +19,11 @@ import org.chromium.base.annotations.SuppressFBWarnings;
import org.chromium.base.library_loader.ProcessInitException;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.ApplicationInitialization;
-import org.chromium.chrome.browser.ChromeApplication;
import org.chromium.chrome.browser.ChromeVersionInfo;
import org.chromium.chrome.browser.WarmupManager;
import org.chromium.chrome.browser.externalauth.ExternalAuthUtils;
import org.chromium.chrome.browser.externalauth.VerifiedHandler;
+import org.chromium.chrome.browser.init.ChromeBrowserInitializer;
import org.chromium.content.browser.ChildProcessLauncher;
/**
@@ -76,8 +76,7 @@ public class ChromePrerenderService extends Service {
try {
new LauncherWarmUpTask().execute(getApplicationContext());
- ((ChromeApplication) getApplication())
- .startBrowserProcessesAndLoadLibrariesSync(true);
+ ChromeBrowserInitializer.getInstance(this).handleSynchronousStartup();
ApplicationInitialization.enableFullscreenFlags(
getApplicationContext().getResources(),

Powered by Google App Engine
This is Rietveld 408576698