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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.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/safe_browsing/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index 678692f5401ea52cbabb9d7f72129ec631306179..a4ce33327494b4293c43be5d9564fb9d58f38e36 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -195,9 +195,9 @@ SafeBrowsingURLRequestContextGetter::GetURLRequestContext() {
// Set up the ChannelIDService
scoped_refptr<net::SQLiteChannelIDStore> channel_id_db =
new net::SQLiteChannelIDStore(
- ChannelIDFilePath(), base::CreateSequencedTaskRunnerWithTraits(
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::BACKGROUND)));
+ ChannelIDFilePath(),
+ base::CreateSequencedTaskRunnerWithTraits(
+ {base::MayBlock(), base::TaskPriority::BACKGROUND}));
channel_id_service_.reset(new net::ChannelIDService(
new net::DefaultChannelIDStore(channel_id_db.get())));
safe_browsing_request_context_->set_channel_id_service(

Powered by Google App Engine
This is Rietveld 408576698