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

Issue 2568543002: Fix data race in RenderThreadImplBrowserTest (Closed)

Created:
4 years ago by Ken Rockot(use gerrit already)
Modified:
4 years ago
Reviewers:
jam
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/97a8683a8e2243efcdf13273a4037d5905ab75dd Cr-Commit-Position: refs/heads/master@{#437755}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -17 lines) Patch
M content/renderer/render_thread_impl.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 2 4 chunks +2 lines, -11 lines 0 comments Download

Messages

Total messages: 26 (20 generated)
Ken Rockot(use gerrit already)
4 years ago (2016-12-09 19:25:46 UTC) #5
Ken Rockot(use gerrit already)
I have half a mind to just delete these tests. At this point the test ...
4 years ago (2016-12-09 21:15:37 UTC) #11
jam
lgtm
4 years ago (2016-12-10 00:07:32 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2568543002/40001
4 years ago (2016-12-10 04:02:31 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-10 04:53:38 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-12 15:06:30 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/97a8683a8e2243efcdf13273a4037d5905ab75dd
Cr-Commit-Position: refs/heads/master@{#437755}

Powered by Google App Engine
This is Rietveld 408576698