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

Issue 2769693002: Enable redirection of SequencedWorkerPool to TaskScheduler in TestBrowserThreadBundle. (Closed)

Created:
3 years, 9 months ago by fdoray
Modified:
3 years, 6 months ago
Reviewers:
robliao, gab, sky
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable redirection of SequencedWorkerPool to TaskScheduler in TestBrowserThreadBundle. Motivation: - Redirection of SequencedWorkerPool to TaskScheduler is enabled in browser tests and on Canary and Dev. It makes sense to enable it in unit tests too. - It is not possible to wait until there are no more blocking pool *and* TaskScheduler tasks (new tasks in the blocking pool during a FlushForTesting() call on TaskScheduler and vice versa). If the blocking pool is redirected to TaskScheduler, calling FlushForTesting() on TaskScheduler guarantees that there are no more blocking pool *and* TaskScheduler tasks. BUG=667892 Review-Url: https://codereview.chromium.org/2769693002 Cr-Commit-Position: refs/heads/master@{#475144} Committed: https://chromium.googlesource.com/chromium/src/+/e1aa28915a28da266d406202a07112d44d6cc018

Patch Set 1 #

Total comments: 3

Patch Set 2 : CR-gab #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M content/public/test/test_browser_thread_bundle.cc View 1 2 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (22 generated)
fdoray
PTAL
3 years, 9 months ago (2017-03-22 15:57:43 UTC) #2
gab
https://codereview.chromium.org/2769693002/diff/1/content/public/test/test_browser_thread_bundle.cc File content/public/test/test_browser_thread_bundle.cc (right): https://codereview.chromium.org/2769693002/diff/1/content/public/test/test_browser_thread_bundle.cc#newcode63 content/public/test/test_browser_thread_bundle.cc:63: base::SequencedWorkerPool::EnableForProcess(); Do we need this? Sounds better to have ...
3 years, 9 months ago (2017-03-22 16:23:30 UTC) #5
fdoray
PTAnL https://codereview.chromium.org/2769693002/diff/1/content/public/test/test_browser_thread_bundle.cc File content/public/test/test_browser_thread_bundle.cc (right): https://codereview.chromium.org/2769693002/diff/1/content/public/test/test_browser_thread_bundle.cc#newcode63 content/public/test/test_browser_thread_bundle.cc:63: base::SequencedWorkerPool::EnableForProcess(); On 2017/03/22 16:23:30, gab wrote: > Do ...
3 years, 8 months ago (2017-04-03 14:57:29 UTC) #8
gab
lgtm w/ comment https://codereview.chromium.org/2769693002/diff/1/content/public/test/test_browser_thread_bundle.cc File content/public/test/test_browser_thread_bundle.cc (right): https://codereview.chromium.org/2769693002/diff/1/content/public/test/test_browser_thread_bundle.cc#newcode63 content/public/test/test_browser_thread_bundle.cc:63: base::SequencedWorkerPool::EnableForProcess(); On 2017/04/03 14:57:28, fdoray wrote: ...
3 years, 8 months ago (2017-04-03 16:56:17 UTC) #9
fdoray
3 years, 8 months ago (2017-04-10 12:41:55 UTC) #12
gab
lgtm++
3 years, 8 months ago (2017-04-25 14:54:54 UTC) #19
robliao
lgtm
3 years, 7 months ago (2017-05-09 21:56:09 UTC) #20
fdoray
sky@: Please take a look.
3 years, 7 months ago (2017-05-26 12:05:20 UTC) #26
sky
LGTM
3 years, 7 months ago (2017-05-26 19:43:27 UTC) #27
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/2769693002/40001
3 years, 7 months ago (2017-05-26 20:26:32 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/e1aa28915a28da266d406202a07112d44d6cc018
3 years, 7 months ago (2017-05-26 21:47:25 UTC) #33
falken
On 2017/05/26 21:47:25, commit-bot: I haz the power wrote: > Committed patchset #3 (id:40001) as ...
3 years, 6 months ago (2017-05-31 04:38:25 UTC) #34
falken
3 years, 6 months ago (2017-05-31 04:46:16 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2909393003/ by falken@chromium.org.

The reason for reverting is: Caused ServiceWorkerResourceStorageDiskTest.* tests
in content_unittests to crash.

See https://bugs.chromium.org/p/chromium/issues/detail?id=727994

Reverting locally fixed the crashes, so I'm going to revert this CL..

Powered by Google App Engine
This is Rietveld 408576698