Chromium Code Reviews
DescriptionDo not call SequencedWorkerPool::GetWorkerPoolForCurrentThread() from CollectEnvironmentData().
SequencedWorkerPool::GetWorkerPoolForCurrentThread() returns nullptr
when called from a SequencedWorkerPool task redirected to the
TaskScheduler.
Note: Code archeology reveals that a reviewer asked to use
SequencedWorkerPool::GetWorkerPoolForCurrentThread() instead of
content::BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()
to avoid a dependance on BrowserThread. I think it's better to
temporarily introduce a dependance on BrowserThread with this CL
than to make SequencedWorkerPool::GetWorkerPoolForCurrentThread()
work from SequencedWorkerPool tasks redirected to TaskScheduler
just for this call site.
https://codereview.chromium.org/1505813003/diff/20001/chrome/browser/safe_browsing/incident_reporting/environment_data_collection.cc#newcode68
BUG=622400
Committed: https://crrev.com/fdb23ec2e44b83f4fc8debbdb43ed5775cb5d92d
Cr-Commit-Position: refs/heads/master@{#422118}
Patch Set 1 #Patch Set 2 : rebase #
Total comments: 3
Messages
Total messages: 14 (6 generated)
|
|||||||||||||||||||