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

Issue 2628773003: Add REAL_TASK_SCHEDULER option in TestBrowserThreadBundle. (Closed)

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

Description

Add REAL_TASK_SCHEDULER option in TestBrowserThreadBundle. With this option, TaskScheduler tasks don't run on the main thread. This is a pre-requisite for the migration of v8 from WorkerPool to TaskScheduler. v8 currently posts tasks to WorkerPool and waits for them from the main thread using a WaitableEvent. That doesn't work if the tasks have to run on the main thread. BUG=659191 Review-Url: https://codereview.chromium.org/2628773003 Cr-Commit-Position: refs/heads/master@{#443737} Committed: https://chromium.googlesource.com/chromium/src/+/aedd3c2c977646f2fd410c8a21a107b77e9df1b8

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix build error #

Total comments: 10

Patch Set 4 : rebase #

Patch Set 5 : CR gab/robliao #15-16 #

Total comments: 2

Patch Set 6 : CR robliao #21 #

Total comments: 2

Patch Set 7 : CR sky #30 #

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

Depends on Patchset:

Messages

Total messages: 41 (28 generated)
fdoray
PTAL
3 years, 11 months ago (2017-01-12 16:15:51 UTC) #14
gab
lgtm w/ nits https://codereview.chromium.org/2628773003/diff/40001/content/public/test/test_browser_thread_bundle.h File content/public/test/test_browser_thread_bundle.h (right): https://codereview.chromium.org/2628773003/diff/40001/content/public/test/test_browser_thread_bundle.h#newcode30 content/public/test/test_browser_thread_bundle.h:30: // justified as it is easier ...
3 years, 11 months ago (2017-01-12 19:50:27 UTC) #15
robliao
https://codereview.chromium.org/2628773003/diff/40001/content/public/test/test_browser_thread_bundle.cc File content/public/test/test_browser_thread_bundle.cc (right): https://codereview.chromium.org/2628773003/diff/40001/content/public/test/test_browser_thread_bundle.cc#newcode93 content/public/test/test_browser_thread_bundle.cc:93: new base::test::ScopedAsyncTaskScheduler()); Should Async instead have been an option ...
3 years, 11 months ago (2017-01-12 20:15:02 UTC) #16
fdoray
robliao@: PTAnL https://codereview.chromium.org/2628773003/diff/40001/content/public/test/test_browser_thread_bundle.cc File content/public/test/test_browser_thread_bundle.cc (right): https://codereview.chromium.org/2628773003/diff/40001/content/public/test/test_browser_thread_bundle.cc#newcode93 content/public/test/test_browser_thread_bundle.cc:93: new base::test::ScopedAsyncTaskScheduler()); On 2017/01/12 20:15:02, robliao wrote: ...
3 years, 11 months ago (2017-01-12 21:25:56 UTC) #18
robliao
https://codereview.chromium.org/2628773003/diff/40001/content/public/test/test_browser_thread_bundle.cc File content/public/test/test_browser_thread_bundle.cc (right): https://codereview.chromium.org/2628773003/diff/40001/content/public/test/test_browser_thread_bundle.cc#newcode93 content/public/test/test_browser_thread_bundle.cc:93: new base::test::ScopedAsyncTaskScheduler()); On 2017/01/12 21:25:56, fdoray wrote: > On ...
3 years, 11 months ago (2017-01-12 21:31:03 UTC) #20
robliao
lgtm in the meantime. https://codereview.chromium.org/2628773003/diff/80001/content/public/test/test_browser_thread_bundle.h File content/public/test/test_browser_thread_bundle.h (right): https://codereview.chromium.org/2628773003/diff/80001/content/public/test/test_browser_thread_bundle.h#newcode66 content/public/test/test_browser_thread_bundle.h:66: IO_MAINLOOP = 1 << 0, ...
3 years, 11 months ago (2017-01-12 21:36:01 UTC) #21
fdoray
sky@: PTAL https://codereview.chromium.org/2628773003/diff/80001/content/public/test/test_browser_thread_bundle.h File content/public/test/test_browser_thread_bundle.h (right): https://codereview.chromium.org/2628773003/diff/80001/content/public/test/test_browser_thread_bundle.h#newcode66 content/public/test/test_browser_thread_bundle.h:66: IO_MAINLOOP = 1 << 0, On 2017/01/12 ...
3 years, 11 months ago (2017-01-13 13:11:45 UTC) #26
sky
LGTM https://codereview.chromium.org/2628773003/diff/100001/content/public/test/test_browser_thread_bundle.cc File content/public/test/test_browser_thread_bundle.cc (right): https://codereview.chromium.org/2628773003/diff/100001/content/public/test/test_browser_thread_bundle.cc#newcode95 content/public/test/test_browser_thread_bundle.cc:95: scoped_async_task_scheduler_.reset( MakeUnique?
3 years, 11 months ago (2017-01-13 15:27:48 UTC) #30
fdoray
https://codereview.chromium.org/2628773003/diff/100001/content/public/test/test_browser_thread_bundle.cc File content/public/test/test_browser_thread_bundle.cc (right): https://codereview.chromium.org/2628773003/diff/100001/content/public/test/test_browser_thread_bundle.cc#newcode95 content/public/test/test_browser_thread_bundle.cc:95: scoped_async_task_scheduler_.reset( On 2017/01/13 15:27:47, sky wrote: > MakeUnique? Done.
3 years, 11 months ago (2017-01-13 18:41:00 UTC) #31
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/2628773003/120001
3 years, 11 months ago (2017-01-13 18:41:42 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/348126)
3 years, 11 months ago (2017-01-13 21:03:14 UTC) #36
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/2628773003/120001
3 years, 11 months ago (2017-01-13 23:05:03 UTC) #38
commit-bot: I haz the power
3 years, 11 months ago (2017-01-14 00:10:17 UTC) #41
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/aedd3c2c977646f2fd410c8a21a1...

Powered by Google App Engine
This is Rietveld 408576698