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

Unified Diff: components/sync/model_impl/model_type_store_impl.cc

Issue 2872933002: Use constexpr TaskTraits constructor everywhere. (Closed)
Patch Set: fix-build-error Created 3 years, 7 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/supervised_user/supervised_user_url_filter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model_impl/model_type_store_impl.cc
diff --git a/components/sync/model_impl/model_type_store_impl.cc b/components/sync/model_impl/model_type_store_impl.cc
index 2e940061666ad6a421a6a91693c61d6fcca00229..9fd0f8252094aea1110c61d917214f927418f9e8 100644
--- a/components/sync/model_impl/model_type_store_impl.cc
+++ b/components/sync/model_impl/model_type_store_impl.cc
@@ -68,9 +68,8 @@ class TaskRunnerMap {
auto iter = task_runner_map_.find(path);
if (iter == task_runner_map_.end()) {
scoped_refptr<base::SequencedTaskRunner> task_runner =
- CreateSequencedTaskRunnerWithTraits(
- base::TaskTraits().MayBlock().WithShutdownBehavior(
- base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN));
+ base::CreateSequencedTaskRunnerWithTraits(
+ {base::MayBlock(), base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN});
task_runner_map_[path] = task_runner;
return task_runner;
} else {
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_url_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698