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

Unified Diff: chrome/browser/ui/webui/options/chromeos/storage_manager_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/options/chromeos/storage_manager_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc b/chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc
index 98da03ec6830d5b6119cb2d88ffc45c66274731e..d73852c003a8e8d2613d81f4ee78a6b4d3d6e8aa 100644
--- a/chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/storage_manager_handler.cc
@@ -212,8 +212,7 @@ void StorageManagerHandler::UpdateSizeStat() {
int64_t* total_size = new int64_t(0);
int64_t* available_size = new int64_t(0);
base::PostTaskWithTraitsAndReply(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(&GetSizeStatAsync, downloads_path, total_size, available_size),
base::Bind(&StorageManagerHandler::OnGetSizeStat,
weak_ptr_factory_.GetWeakPtr(), base::Owned(total_size),
@@ -250,8 +249,7 @@ void StorageManagerHandler::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(&StorageManagerHandler::OnGetDownloadsSize,
weak_ptr_factory_.GetWeakPtr()));
« no previous file with comments | « chrome/browser/ui/webui/nacl_ui.cc ('k') | chrome/browser/ui/webui/print_preview/extension_printer_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698