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

Unified Diff: chrome/browser/browsing_data/site_data_size_collector.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
« no previous file with comments | « chrome/browser/android/webapk/webapk_installer.cc ('k') | chrome/browser/budget_service/budget_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/site_data_size_collector.cc
diff --git a/chrome/browser/browsing_data/site_data_size_collector.cc b/chrome/browser/browsing_data/site_data_size_collector.cc
index 98873ac016afee6a0902173dfa3fd6c844302fe3..fd424e7474fa09dcd4cdba919183976f2a01f987 100644
--- a/chrome/browser/browsing_data/site_data_size_collector.cc
+++ b/chrome/browser/browsing_data/site_data_size_collector.cc
@@ -147,8 +147,7 @@ void SiteDataSizeCollector::OnCookiesModelInfoLoaded(
base::FilePath cookie_file_path = default_storage_partition_path_
.Append(chrome::kCookieFilename);
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(&GetFileSizeBlocking, cookie_file_path),
base::Bind(&SiteDataSizeCollector::OnStorageSizeFetched,
weak_ptr_factory_.GetWeakPtr()));
@@ -203,8 +202,7 @@ void SiteDataSizeCollector::OnChannelIDModelInfoLoaded(
base::FilePath channel_id_file_path = default_storage_partition_path_
.Append(chrome::kChannelIDFilename);
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(&GetFileSizeBlocking, channel_id_file_path),
base::Bind(&SiteDataSizeCollector::OnStorageSizeFetched,
weak_ptr_factory_.GetWeakPtr()));
@@ -241,8 +239,7 @@ void SiteDataSizeCollector::OnFlashLSOInfoLoaded(
base::FilePath pepper_data_dir_path = default_storage_partition_path_
.Append(content::kPepperDataDirname);
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(&base::ComputeDirectorySize, pepper_data_dir_path),
base::Bind(&SiteDataSizeCollector::OnStorageSizeFetched,
weak_ptr_factory_.GetWeakPtr()));
« no previous file with comments | « chrome/browser/android/webapk/webapk_installer.cc ('k') | chrome/browser/budget_service/budget_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698