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

Unified Diff: chrome/browser/password_manager/password_manager_util_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/password_manager/password_manager_util_win.cc
diff --git a/chrome/browser/password_manager/password_manager_util_win.cc b/chrome/browser/password_manager/password_manager_util_win.cc
index 9a114fafbc08a625a71385154c2e14b4a85d1ba8..01dd5c2821f1ed2eb44a2f58d0efe2d5ef172637 100644
--- a/chrome/browser/password_manager/password_manager_util_win.cc
+++ b/chrome/browser/password_manager/password_manager_util_win.cc
@@ -209,9 +209,7 @@ void GetOsPasswordStatus() {
OsPasswordStatus* status_weak = status.get();
// This task calls ::LogonUser(), hence MayBlock().
base::PostTaskWithTraitsAndReply(
- FROM_HERE, base::TaskTraits()
- .WithPriority(base::TaskPriority::BACKGROUND)
- .MayBlock(),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::BACKGROUND},
base::Bind(&GetOsPasswordStatusInternal, prefs_weak, status_weak),
base::Bind(&ReplyOsPasswordStatus, base::Passed(&prefs),
base::Passed(&status)));
« no previous file with comments | « chrome/browser/ntp_snippets/content_suggestions_service_factory.cc ('k') | chrome/browser/pepper_flash_settings_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698