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

Unified Diff: chrome/browser/safe_browsing/chrome_cleaner/srt_fetcher_win.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/chrome_cleaner/srt_fetcher_win.cc
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/srt_fetcher_win.cc b/chrome/browser/safe_browsing/chrome_cleaner/srt_fetcher_win.cc
index 02dbb66d6e5b234522568fb5929a7766a9cf0646..86093091b215155d2b948ad436b6de81f6ce4da4 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/srt_fetcher_win.cc
+++ b/chrome/browser/safe_browsing/chrome_cleaner/srt_fetcher_win.cc
@@ -1167,12 +1167,9 @@ class ReporterRunner : public chrome::BrowserListObserver {
base::CreateTaskRunnerWithTraits(
// LaunchAndWaitForExitOnBackgroundThread() creates (MayBlock()) and
// joins (WithBaseSyncPrimitives()) a process.
- base::TaskTraits()
- .WithShutdownBehavior(
- base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN)
- .WithPriority(base::TaskPriority::BACKGROUND)
- .MayBlock()
- .WithBaseSyncPrimitives());
+ {base::MayBlock(), base::WithBaseSyncPrimitives(),
+ base::TaskPriority::BACKGROUND,
+ base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN});
// This value is used to identify how long to wait before starting a new run
// of the reporter queue. It's initialized with the default value and may be

Powered by Google App Engine
This is Rietveld 408576698