Fix data race in RenderThreadImplBrowserTest
Use ThreadTaskRunnerHandle instead of BrowserThread::GetTaskRunnerForThread. This avoids a data race in shutdown due to the fact that RendererScheduler (used on a BrowserThread in this test) tramples the MessageLoop's TaskRunner in a manner BrowserThreadImpl's TaskRunner facade does not anticipate. Also opportunistically corrects some non-const ref arguments in RenderThreadImpl. BUG=672812 Review-Url: https://codereview.chromium.org/2568543002 Cr-Commit-Position: refs/heads/master@{#437755}
Showing
Please register or sign in to comment