|
Don't share renderers between unrelated tabs on Android.
On Android we explicitly allow the OS to kill Chrome's background
renderers when under memory pressure and we don't try to control the
number of renderers ourselves.
The process limit logic in content causes process sharing
between unrelated tabs when the number of renderer process hosts
(not the number of actual live processes) is too high. Because on
Android the system adjusts the number of actual live processes for us,
we don't want to limit the number of process hosts or to ever share
renderers between unrelated tabs.
This patch:
- disables the renderer process host limit on Android. If not
overridden, ShouldTryToUseExistingProcessHost() will always return
false.
- drops the logic that sets the renderer limit based on the number of
declared renderer services
BUG= 325842
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284095
Total comments: 14
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+105 lines, -67 lines) |
Patch |
 |
M |
android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/sync/ChromiumSyncAdapter.java
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/android/shell/javatests/src/org/chromium/chrome/shell/ChromeShellTestBase.java
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/browser_startup_controller.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/content_startup_flags.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/android/content_startup_flags.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+5 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+15 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_process_host_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/site_instance_impl_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+11 lines, -29 lines |
0 comments
|
Download
|
 |
M |
content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/public/android/javatests/src/org/chromium/content/browser/BrowserStartupControllerTest.java
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/render_process_host.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|