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

Unified Diff: components/history/core/browser/history_service.cc

Issue 2855223002: Use constexpr TaskTraits constructor in components. (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 | « no previous file | components/leveldb/env_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/history_service.cc
diff --git a/components/history/core/browser/history_service.cc b/components/history/core/browser/history_service.cc
index c84a75c5651b94fac84867348de50cdc3dbe1279..788c90da0890fe2d76700547295d4d5a008b1c2c 100644
--- a/components/history/core/browser/history_service.cc
+++ b/components/history/core/browser/history_service.cc
@@ -901,11 +901,9 @@ bool HistoryService::Init(
backend_task_runner_ = thread_->task_runner();
} else {
backend_task_runner_ = base::CreateSequencedTaskRunnerWithTraits(
- base::TaskTraits()
- .WithPriority(base::TaskPriority::USER_BLOCKING)
- .WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN)
- .MayBlock()
- .WithBaseSyncPrimitives());
+ {base::MayBlock(), base::WithBaseSyncPrimitives(),
+ base::TaskPriority::USER_BLOCKING,
+ base::TaskShutdownBehavior::BLOCK_SHUTDOWN});
}
// Create the history backend.
« no previous file with comments | « no previous file | components/leveldb/env_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698