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

Unified Diff: chrome/browser/chromeos/system/automatic_reboot_manager.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/automatic_reboot_manager.cc
diff --git a/chrome/browser/chromeos/system/automatic_reboot_manager.cc b/chrome/browser/chromeos/system/automatic_reboot_manager.cc
index 89f1004eaf901781c7175d65aa4dd3bd81b1f446..73d7e2e7fc6ee30f9c8d9ffdd437d6bb46cc988e 100644
--- a/chrome/browser/chromeos/system/automatic_reboot_manager.cc
+++ b/chrome/browser/chromeos/system/automatic_reboot_manager.cc
@@ -236,13 +236,10 @@ void AutomaticRebootManager::UpdateStatusChanged(
return;
}
- base::PostTaskWithTraits(
- FROM_HERE,
- base::TaskTraits()
- .WithPriority(base::TaskPriority::BACKGROUND)
- .WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN)
- .MayBlock(),
- base::Bind(&SaveUpdateRebootNeededUptime));
+ base::PostTaskWithTraits(FROM_HERE,
+ {base::MayBlock(), base::TaskPriority::BACKGROUND,
+ base::TaskShutdownBehavior::BLOCK_SHUTDOWN},
+ base::Bind(&SaveUpdateRebootNeededUptime));
update_reboot_needed_time_ = clock_->NowTicks();
have_update_reboot_needed_time_ = true;

Powered by Google App Engine
This is Rietveld 408576698