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

Unified Diff: chrome/browser/chromeos/base/file_flusher.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/base/file_flusher.cc
diff --git a/chrome/browser/chromeos/base/file_flusher.cc b/chrome/browser/chromeos/base/file_flusher.cc
index 406b66033c9af79f5ff3155856231cffdc61c7ff..9bf803c86b635200078dafa4106612489f0690ef 100644
--- a/chrome/browser/chromeos/base/file_flusher.cc
+++ b/chrome/browser/chromeos/base/file_flusher.cc
@@ -98,8 +98,7 @@ void FileFlusher::Job::Start() {
}
base::PostTaskWithTraitsAndReply(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(&FileFlusher::Job::FlushAsync, base::Unretained(this)),
base::Bind(&FileFlusher::Job::FinishOnUIThread, base::Unretained(this)));
}
« no previous file with comments | « chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc ('k') | chrome/browser/chromeos/base/locale_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698