Fix duplicate command line switches in GPU process
AppendExtraCommandLineSwitches was called twice during GPU process launch and it caused some duplicate command line switches in GPU process. In GpuProcessHost::LaunchGpuProcess, the second AppendExtraCommandLineSwitches call was from BrowserChildProcessHostImpl::Launch(). The solution is to divide BrowserChildProcessHostImpl::Launch() into two parts - AppendExtraCommandLineSwitches and LaunchWithoutExtraComandLineSwitches. The GPU process will now call LaunchWithoutExtraComandLineSwitches to avoid running AppendExtraCommandLineSwitches twice. Bug:899361 Change-Id: I4ddfeaaf9624aac68e9ab68aabac6ed4e83f7a03 Reviewed-on: https://chromium-review.googlesource.com/c/1316660 Commit-Queue: Maggie Chen <magchen@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Zhenyao Mo <zmo@chromium.org> Cr-Commit-Position: refs/heads/master@{#607043}
Showing
Please register or sign in to comment