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

Unified Diff: content/browser/dom_storage/dom_storage_context_wrapper.cc

Issue 2857983003: Use constexpr TaskTraits constructor in content. (Closed)
Patch Set: CR gab #8 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
Index: content/browser/dom_storage/dom_storage_context_wrapper.cc
diff --git a/content/browser/dom_storage/dom_storage_context_wrapper.cc b/content/browser/dom_storage/dom_storage_context_wrapper.cc
index be4ffb4c0b619f129745bb2b14a1d742ccb5f950..64964fe9e4fb6df6712067b3958b6b7836c66992 100644
--- a/content/browser/dom_storage/dom_storage_context_wrapper.cc
+++ b/content/browser/dom_storage/dom_storage_context_wrapper.cc
@@ -95,11 +95,9 @@ DOMStorageContextWrapper::DOMStorageContextWrapper(
// believed to be blocking synchronous IPCs from the renderers:
// http://crbug.com/665588 (yes we want to fix that bug, but are taking it
// as an opportunity to experiment with the scheduler).
- base::TaskTraits dom_storage_traits =
- base::TaskTraits()
- .WithShutdownBehavior(base::TaskShutdownBehavior::BLOCK_SHUTDOWN)
- .MayBlock()
- .WithPriority(base::TaskPriority::USER_BLOCKING);
+ base::TaskTraits dom_storage_traits = {
+ base::MayBlock(), base::TaskPriority::USER_BLOCKING,
+ base::TaskShutdownBehavior::BLOCK_SHUTDOWN};
primary_sequence =
base::CreateSequencedTaskRunnerWithTraits(dom_storage_traits);
commit_sequence =
« no previous file with comments | « content/browser/devtools/protocol/page_handler.cc ('k') | content/browser/frame_host/navigation_entry_screenshot_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698