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

Unified Diff: components/nacl/browser/nacl_file_host.cc

Issue 2855223002: Use constexpr TaskTraits constructor in components. (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
« no previous file with comments | « components/nacl/browser/nacl_browser.cc ('k') | components/nacl/browser/nacl_host_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/browser/nacl_file_host.cc
diff --git a/components/nacl/browser/nacl_file_host.cc b/components/nacl/browser/nacl_file_host.cc
index bc286ab2442dd78e56ba3b6c2b5568a1acf69091..f1ea4fd6dfdec1d1f58c2771e2689c2a8704c814 100644
--- a/components/nacl/browser/nacl_file_host.cc
+++ b/components/nacl/browser/nacl_file_host.cc
@@ -179,7 +179,7 @@ void GetReadonlyPnaclFd(
bool is_executable,
IPC::Message* reply_msg) {
base::PostTaskWithTraits(
- FROM_HERE, base::TaskTraits().MayBlock(),
+ FROM_HERE, {base::MayBlock()},
base::Bind(&DoOpenPnaclFile, nacl_host_message_filter, filename,
is_executable, reply_msg));
}
@@ -260,7 +260,7 @@ void OpenNaClExecutable(
// file path and convert that to a file descriptor. This should be done on a
// blocking pool thread.
base::PostTaskWithTraits(
- FROM_HERE, base::TaskTraits().MayBlock(),
+ FROM_HERE, {base::MayBlock()},
base::Bind(&DoOpenNaClExecutableOnThreadPool, nacl_host_message_filter,
file_url, enable_validation_caching, reply_msg));
}
« no previous file with comments | « components/nacl/browser/nacl_browser.cc ('k') | components/nacl/browser/nacl_host_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698