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

Unified Diff: content/browser/child_process_launcher_helper_android.cc

Issue 2793623002: android: Limit num renderer to service slots (Closed)
Patch Set: fix remaining unit tests Created 3 years, 9 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/browser/child_process_launcher_helper_android.cc
diff --git a/content/browser/child_process_launcher_helper_android.cc b/content/browser/child_process_launcher_helper_android.cc
index 05fbf3b880b910ecbfde12a1ae23ef2c1034da8e..a09bb6b173116b1490d9d27d395f52bfb2d8db35 100644
--- a/content/browser/child_process_launcher_helper_android.cc
+++ b/content/browser/child_process_launcher_helper_android.cc
@@ -239,6 +239,13 @@ void ChildProcessLauncherHelper::OnChildProcessStarted(
}
}
+// static
+size_t ChildProcessLauncherHelper::GetNumberOfRendererSlots() {
+ return static_cast<size_t>(
+ Java_ChildProcessLauncherHelper_getNumberOfRendererSlots(
+ AttachCurrentThread()));
+}
+
} // namespace internal
bool RegisterChildProcessLauncher(JNIEnv* env) {

Powered by Google App Engine
This is Rietveld 408576698