fix: quick follow-up to threadpool PR (#22611)

This commit is contained in:
Shelley Vohr 2020-03-09 18:26:27 +00:00 committed by GitHub
parent 3b08736ae2
commit dcab07c8b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -328,8 +328,8 @@ void OpenPath(const base::FilePath& full_path, OpenCallback callback) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI); DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
base::PostTaskAndReplyWithResult( base::PostTaskAndReplyWithResult(
base::ThreadPool::CreateSingleThreadTaskRunner(({base::MayBlock(), base::ThreadPool::CreateCOMSTATaskRunner(
base::TaskPriority::USER_BLOCKING}) {base::MayBlock(), base::TaskPriority::USER_BLOCKING})
.get(), .get(),
FROM_HERE, base::BindOnce(&OpenPathOnThread, full_path), FROM_HERE, base::BindOnce(&OpenPathOnThread, full_path),
std::move(callback)); std::move(callback));