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

Unified Diff: chrome/browser/chromeos/hats/hats_notification_controller.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/hats/hats_notification_controller.cc
diff --git a/chrome/browser/chromeos/hats/hats_notification_controller.cc b/chrome/browser/chromeos/hats/hats_notification_controller.cc
index 9705ba2b824f808b5d0d6254e1503ca1e74de756..36ee547d36711c652c3d26db709fcbfc2702971f 100644
--- a/chrome/browser/chromeos/hats/hats_notification_controller.cc
+++ b/chrome/browser/chromeos/hats/hats_notification_controller.cc
@@ -114,8 +114,7 @@ HatsNotificationController::HatsNotificationController(
image_fetcher_(image_fetcher),
weak_pointer_factory_(this) {
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(&IsNewDevice, kHatsNewDeviceThresholdDays),
base::Bind(&HatsNotificationController::Initialize,
weak_pointer_factory_.GetWeakPtr()));
« no previous file with comments | « chrome/browser/chromeos/hats/hats_dialog.cc ('k') | chrome/browser/chromeos/input_method/input_method_syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698