mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
fix: quick follow-up to threadpool PR (#22611)
This commit is contained in:
@@ -328,8 +328,8 @@ void OpenPath(const base::FilePath& full_path, OpenCallback callback) {
|
||||
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
||||
|
||||
base::PostTaskAndReplyWithResult(
|
||||
base::ThreadPool::CreateSingleThreadTaskRunner(({base::MayBlock(),
|
||||
base::TaskPriority::USER_BLOCKING})
|
||||
base::ThreadPool::CreateCOMSTATaskRunner(
|
||||
{base::MayBlock(), base::TaskPriority::USER_BLOCKING})
|
||||
.get(),
|
||||
FROM_HERE, base::BindOnce(&OpenPathOnThread, full_path),
|
||||
std::move(callback));
|
||||
|
||||
Reference in New Issue
Block a user