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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.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
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index ae46c2ba5428e59892f0c77cdfd96cd0a70707e4..1b6896fde37ab4b79332a9c1e2a78023c94b6876 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -507,8 +507,7 @@ void ProfileImplIOData::InitializeInternal(
new QuotaPolicyChannelIDStore(
lazy_params_->channel_id_path,
base::CreateSequencedTaskRunnerWithTraits(
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND)),
+ {base::MayBlock(), base::TaskPriority::BACKGROUND}),
lazy_params_->special_storage_policy.get());
main_context_storage->set_channel_id_service(
base::MakeUnique<net::ChannelIDService>(
@@ -655,9 +654,9 @@ net::URLRequestContext* ProfileImplIOData::InitializeAppRequestContext(
cookie_config.crypto_delegate = cookie_config::GetCookieCryptoDelegate();
cookie_store = content::CreateCookieStore(cookie_config);
channel_id_db = new net::SQLiteChannelIDStore(
- channel_id_path, base::CreateSequencedTaskRunnerWithTraits(
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND)));
+ channel_id_path,
+ base::CreateSequencedTaskRunnerWithTraits(
+ {base::MayBlock(), base::TaskPriority::BACKGROUND}));
}
std::unique_ptr<net::ChannelIDService> channel_id_service(
new net::ChannelIDService(

Powered by Google App Engine
This is Rietveld 408576698