Index: chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc |
diff --git a/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc b/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc |
index 9e611a43cfdefb6c40483b1ca487794ac838f935..640996c02087ef627f23aecb931d845517966189 100644 |
--- a/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc |
+++ b/chrome/browser/ui/webui/settings/chromeos/device_storage_handler.cc |
@@ -143,10 +143,7 @@ void StorageHandler::UpdateSizeStat() { |
int64_t* total_size = new int64_t(0); |
int64_t* available_size = new int64_t(0); |
base::PostTaskWithTraitsAndReply( |
- FROM_HERE, |
- base::TaskTraits() |
- .WithPriority(base::TaskPriority::USER_VISIBLE) |
- .MayBlock(), |
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE}, |
base::Bind(&GetSizeStatBlocking, downloads_path, total_size, |
available_size), |
base::Bind(&StorageHandler::OnGetSizeStat, base::Unretained(this), |
@@ -183,8 +180,7 @@ void StorageHandler::UpdateDownloadsSize() { |
file_manager::util::GetDownloadsFolderForProfile(profile); |
base::PostTaskWithTraitsAndReplyWithResult( |
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority( |
- base::TaskPriority::BACKGROUND), |
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND}, |
base::Bind(&base::ComputeDirectorySize, downloads_path), |
base::Bind(&StorageHandler::OnGetDownloadsSize, base::Unretained(this))); |
} |