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

Unified Diff: chrome/browser/platform_util_linux.cc

Issue 2674873003: Use TaskScheduler instead of blocking pool in platform_util_linux.cc. (Closed)
Patch Set: fix build error Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/platform_util_linux.cc
diff --git a/chrome/browser/platform_util_linux.cc b/chrome/browser/platform_util_linux.cc
index b708dfdbc05d1e0f8be52996e74e96bed3bd26f7..66b80963a1dfbfb9a50b87ffbb9f1f1dd74eddc9 100644
--- a/chrome/browser/platform_util_linux.cc
+++ b/chrome/browser/platform_util_linux.cc
@@ -11,7 +11,7 @@
#include "base/process/launch.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
-#include "base/threading/sequenced_worker_pool.h"
+#include "base/task_scheduler/post_task.h"
#include "base/version.h"
#include "chrome/browser/platform_util_internal.h"
#include "content/public/browser/browser_thread.h"
@@ -160,10 +160,12 @@ void PlatformOpenVerifiedItem(const base::FilePath& path, OpenItemType type) {
void ShowItemInFolder(Profile* profile, const base::FilePath& full_path) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- base::PostTaskAndReplyWithResult(content::BrowserThread::GetBlockingPool(),
- FROM_HERE,
- base::Bind(&CheckNautilusIsDefault),
- base::Bind(&ShowItem, profile, full_path));
+ base::PostTaskWithTraitsAndReplyWithResult(
+ FROM_HERE,
+ {base::WithBaseSyncPrimitives(), base::MayBlock(),
+ base::TaskPriority::USER_BLOCKING},
+ base::BindOnce(&CheckNautilusIsDefault),
+ base::BindOnce(&ShowItem, profile, full_path));
}
void OpenExternal(Profile* profile, const GURL& url) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698