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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/device_storage_handler.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/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)));
}
« no previous file with comments | « chrome/browser/ui/webui/settings/about_handler.cc ('k') | chrome/browser/ui/webui/version_handler_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698