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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java

Issue 12213021: Android content_browsertests: Allow processing java tasks in nested mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 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 | « content/content_shell.gypi ('k') | content/shell/android/browsertests_apk/content_browser_tests_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java b/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
index 2219f8a65f00b9186c03d1df833915e057c42e39..823b4b239dcbf2ce117627e49d019e7535622f53 100644
--- a/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
+++ b/content/public/android/java/src/org/chromium/content/browser/AndroidBrowserProcess.java
@@ -144,7 +144,11 @@ public class AndroidBrowserProcess {
/**
* Initialization needed for tests. Mainly used by content browsertests.
*/
- public static void initChromiumBrowserProcessForTests() {
+ public static void initChromiumBrowserProcessForTests(Context context) {
+ ResourceExtractor resourceExtractor = ResourceExtractor.get(context);
+ resourceExtractor.startExtractingResources();
+ resourceExtractor.waitForCompletion();
+
// Having a single renderer should be sufficient for tests.
// We can't have more than MAX_RENDERERS_LIMIT.
nativeSetCommandLineFlags(1 /* maxRenderers */);
« no previous file with comments | « content/content_shell.gypi ('k') | content/shell/android/browsertests_apk/content_browser_tests_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698