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

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

Issue 10876029: [Android] Upstreaming process number increase (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing Created 8 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: 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 4a075bc0bf0a842ed185182e651f6be8625432ef..65627e085d9b05751cbf017786b484ec33f18348 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
@@ -46,8 +46,15 @@ public class AndroidBrowserProcess {
public static final int MAX_RENDERERS_AUTOMATIC = -1;
// Use single-process mode that runs the renderer on a separate thread in the main application.
public static final int MAX_RENDERERS_SINGLE_PROCESS = 0;
+
// Cap on the maximum number of renderer processes that can be requested.
- public static final int MAX_RENDERERS_LIMIT = 3; // TODO(tedbo): Raise limit
+ // This is currently set to account for:
+ // 6: The maximum number of sandboxed processes we have available
+ // - 1: The regular New Tab Page
+ // - 1: The incognito New Tab Page
+ // - 1: A regular incognito tab
+ public static final int MAX_RENDERERS_LIMIT =
+ SandboxedProcessLauncher.MAX_REGISTERED_SERVICES - 3;
/**
* Initialize the process as a ContentView host. This must be called from the main UI thread.

Powered by Google App Engine
This is Rietveld 408576698