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

Unified Diff: chrome/browser/chromeos/customization/customization_document.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/chromeos/customization/customization_document.cc
diff --git a/chrome/browser/chromeos/customization/customization_document.cc b/chrome/browser/chromeos/customization/customization_document.cc
index 19377dfa08b3cf8be8692d437d762b1b41718288..3a14bfcaf61a87e701d4421340c268964c47fc55 100644
--- a/chrome/browser/chromeos/customization/customization_document.cc
+++ b/chrome/browser/chromeos/customization/customization_document.cc
@@ -866,10 +866,9 @@ void ServicesCustomizationDocument::CheckAndApplyWallpaper() {
&ServicesCustomizationDocument::OnCheckedWallpaperCacheExists,
weak_ptr_factory_.GetWeakPtr(), base::Passed(std::move(exists)),
base::Passed(std::move(applying)));
- base::PostTaskWithTraitsAndReply(FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
- check_file_exists, on_checked_closure);
+ base::PostTaskWithTraitsAndReply(
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
+ check_file_exists, on_checked_closure);
}
void ServicesCustomizationDocument::OnCheckedWallpaperCacheExists(

Powered by Google App Engine
This is Rietveld 408576698