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

Unified Diff: chrome/browser/chromeos/hats/hats_dialog.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_dialog.cc
diff --git a/chrome/browser/chromeos/hats/hats_dialog.cc b/chrome/browser/chromeos/hats/hats_dialog.cc
index dc9ae4d9da055d6722e24ae5a55a051a30d9814e..fa054c1d92274a7bfe4000aff92e866896319dbb 100644
--- a/chrome/browser/chromeos/hats/hats_dialog.cc
+++ b/chrome/browser/chromeos/hats/hats_dialog.cc
@@ -125,8 +125,7 @@ void HatsDialog::CreateAndShow(bool is_google_account) {
std::unique_ptr<HatsDialog> hats_dialog(new HatsDialog);
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(&GetFormattedSiteContext, user_locale, kDeviceInfoStopKeyword),
base::Bind(&HatsDialog::Show, base::Passed(&hats_dialog),
is_google_account ? kGooglerSiteID : kSiteID));
« no previous file with comments | « chrome/browser/chromeos/first_run/goodies_displayer.cc ('k') | chrome/browser/chromeos/hats/hats_notification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698