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

Unified Diff: chrome/browser/extensions/api/messaging/native_process_launcher.cc

Issue 2858073002: Use constexpr TaskTraits constructor in chrome. (Closed)
Patch Set: Created 3 years, 8 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
Index: chrome/browser/extensions/api/messaging/native_process_launcher.cc
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher.cc b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
index a7a0a822b3e0e754805132076fb8025f98775012..2527742857c11e1897018ebfd0e26d32a8542bc0 100644
--- a/chrome/browser/extensions/api/messaging/native_process_launcher.cc
+++ b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
@@ -108,8 +108,7 @@ void NativeProcessLauncherImpl::Core::Launch(
const std::string& native_host_name,
const LaunchedCallback& callback) {
base::PostTaskWithTraits(FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_VISIBLE),
+ {base::MayBlock(), base::TaskPriority::USER_VISIBLE},
base::BindOnce(&Core::DoLaunchOnThreadPool, this,
origin, native_host_name, callback));
}

Powered by Google App Engine
This is Rietveld 408576698