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())); |