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

Unified Diff: extensions/browser/updater/update_install_shim.cc

Issue 2859933002: Use constexpr TaskTraits constructor in extensions. (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 | « extensions/browser/updater/update_data_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/updater/update_install_shim.cc
diff --git a/extensions/browser/updater/update_install_shim.cc b/extensions/browser/updater/update_install_shim.cc
index 110874db85e22830bdfa905abcccab45ad489758..04621b090db639e2cd0c6ef57d15581bdbed523d 100644
--- a/extensions/browser/updater/update_install_shim.cc
+++ b/extensions/browser/updater/update_install_shim.cc
@@ -80,8 +80,7 @@ UpdateInstallShim::~UpdateInstallShim() {}
void UpdateInstallShim::RunCallbackOnUIThread(const base::FilePath& temp_dir) {
if (callback_.is_null()) {
base::PostTaskWithTraits(FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND),
+ {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(base::IgnoreResult(&base::DeleteFile),
temp_dir, true /*recursive */));
return;
« no previous file with comments | « extensions/browser/updater/update_data_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698