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

Unified Diff: chrome/browser/chromeos/system_logs/touch_log_source_ozone.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/system_logs/touch_log_source_ozone.cc
diff --git a/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc b/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc
index d7ba8e93406e79b5e77439dbbbb0d0a68f868b90..d7897dbad568e8014efe6747777b23da9455ced2 100644
--- a/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc
+++ b/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc
@@ -126,9 +126,7 @@ void PackEventLog(system_logs::SystemLogsResponse* response,
// Cleanup these temporary log files.
base::PostTaskWithTraits(
- FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(CleanupEventLog, base::Passed(&log_paths)));
}
@@ -148,10 +146,9 @@ void OnEventLogCollected(
base::Passed(&log_paths));
const base::Closure callback_closure =
base::Bind(callback, base::Owned(response.release()));
- base::PostTaskWithTraitsAndReply(FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
- pack_closure, callback_closure);
+ base::PostTaskWithTraitsAndReply(
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
+ pack_closure, callback_closure);
}
// Callback for handing the outcome of GetTouchDeviceStatus().
« no previous file with comments | « chrome/browser/chromeos/system_logs/debug_log_writer.cc ('k') | chrome/browser/chromeos/system_logs/touch_log_source_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698