Remove ability to register multiple ChildProcessCreationParams objects part 2
This CL: - Removes ChildProcessLauncherHelper#mCreationParams - Moves public static ChildProcessCreationParams accessors from ChildProcessLauncherHelper.java to ChildProcessCreationParams.java - Changes type of ChildProcessLauncherHelper#sSandboxedChildConnectionAllocatorMap from Map<String, ChildConnectionAllocator> to ChildConnectionAllocator (The map is no longer needed because WebAPKs no longer have special ChildProcessCreationParams) - As there is now just one sandboxed ChildConnectionAllocator we now no longer free the allocator when the last connection is freed. This matches what we do for ChildProcessLauncherHelper#sPrivilegedChildConnectionAllocator Deleted tests: - Tested creating multiple allocators - testAllocatorForPackage() - testCustomCreationParamDoesNotReuseWarmupConnection() introduced in https://codereview.chromium.org/2705133002 - Tested that ChildConnectionAllocator is freed when last sandboxed connection was freed - testSandboxedAllocatorFreed() introduced in https://chromium-review.googlesource.com/c/chromium/src/+/513587 - testSandboxedAllocatorFreedWith2Connections() introduced in https://chromium-review.googlesource.com/c/chromium/src/+/588380 BUG=797999 Change-Id: I2147ae24d99a7e8b2d93bb7f5a4a2b5ae37172f8 Reviewed-on: https://chromium-review.googlesource.com/884621 Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org> Reviewed-by:Bo <boliu@chromium.org> Reviewed-by:
Jay Civelli <jcivelli@chromium.org> Cr-Commit-Position: refs/heads/master@{#532653}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment