Browse Source

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

Shelley Vohr 5 years ago
parent
commit
dcab07c8b1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      shell/common/platform_util_win.cc

+ 2 - 2
shell/common/platform_util_win.cc

@@ -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));