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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_mount.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/chromeos/extensions/file_manager/private_api_mount.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc
index c165bda50b42f14199600b2f39e495365baad52f..a8864b931088048a0260539c28a40dfba4dd4a98 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc
@@ -101,8 +101,7 @@ bool FileManagerPrivateAddMountFunction::RunAsync() {
// For files under downloads, change the file permission and make it
// readable from avfs/fuse if needed.
base::PostTaskWithTraits(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_BLOCKING),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_BLOCKING},
base::Bind(&EnsureReadableFilePermissionAsync, path,
google_apis::CreateRelayCallback(
base::Bind(&FileManagerPrivateAddMountFunction::

Powered by Google App Engine
This is Rietveld 408576698