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

Unified Diff: chrome/browser/web_applications/web_app_win.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
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | chrome/browser/win/enumerate_modules_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_applications/web_app_win.cc
diff --git a/chrome/browser/web_applications/web_app_win.cc b/chrome/browser/web_applications/web_app_win.cc
index fe26bca227a8c8a88764e1473602c39098bd93f7..a71ee45fa63e7427a7e7574eb014dae3e1b27559 100644
--- a/chrome/browser/web_applications/web_app_win.cc
+++ b/chrome/browser/web_applications/web_app_win.cc
@@ -374,9 +374,7 @@ void OnShortcutInfoLoadedForSetRelaunchDetails(
web_app::internals::GetIconFilePath(web_app_path, shortcut_info->title);
const web_app::ShortcutInfo& shortcut_info_ref = *shortcut_info;
base::PostTaskWithTraitsAndReply(
- FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_VISIBLE),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE},
base::Bind(&CreateIconAndSetRelaunchDetails, web_app_path, icon_file,
base::ConstRef(shortcut_info_ref), hwnd),
base::Bind(&web_app::internals::DeleteShortcutInfoOnUIThread,
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | chrome/browser/win/enumerate_modules_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698