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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java

Issue 19957002: Run the later parts of startup as UI thread tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Run the later parts of startup as UI thread tasks - minor comment fixes Created 7 years, 5 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
« no previous file with comments | « no previous file | android_webview/lib/main/aw_main_delegate.cc » ('j') | chrome/browser/chrome_browser_main.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java b/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
index 7c3ab76050d63f2521dafbd9e2263ff37d77995c..b443eb176b3980fca53603a4b447eb0973d5c1a5 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
@@ -11,6 +11,7 @@ import org.chromium.base.PathUtils;
import org.chromium.base.ThreadUtils;
import org.chromium.content.app.LibraryLoader;
import org.chromium.content.browser.AndroidBrowserProcess;
+import org.chromium.content.browser.StartupObserver;
import org.chromium.content.common.ProcessInitException;
/**
@@ -49,7 +50,8 @@ public abstract class AwBrowserProcess {
try {
LibraryLoader.ensureInitialized();
AndroidBrowserProcess.init(context,
- AndroidBrowserProcess.MAX_RENDERERS_SINGLE_PROCESS);
+ AndroidBrowserProcess.MAX_RENDERERS_SINGLE_PROCESS,
+ true, new StartupObserver());
} catch (ProcessInitException e) {
throw new RuntimeException("Cannot initialize WebView", e);
}
« no previous file with comments | « no previous file | android_webview/lib/main/aw_main_delegate.cc » ('j') | chrome/browser/chrome_browser_main.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698