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

Unified Diff: chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.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/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc
diff --git a/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc b/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc
index cd8eb80034e0d5efcd5f31ca2ac3d8acceb9491a..da6f543d36a514bb028172c05df973576adbfc91 100644
--- a/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc
+++ b/chrome/browser/extensions/api/networking_cast_private/chrome_networking_cast_private_delegate.cc
@@ -191,9 +191,7 @@ void ChromeNetworkingCastPrivateDelegate::VerifyDestination(
const VerifiedCallback& success_callback,
const FailureCallback& failure_callback) {
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_VISIBLE),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE},
base::Bind(&RunDecodeAndVerifyCredentials, base::Passed(&credentials)),
base::Bind(&VerifyDestinationCompleted, success_callback,
failure_callback));
@@ -205,9 +203,7 @@ void ChromeNetworkingCastPrivateDelegate::VerifyAndEncryptCredentials(
const DataCallback& success_callback,
const FailureCallback& failure_callback) {
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_VISIBLE),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE},
base::Bind(&RunVerifyAndEncryptCredentials, guid,
base::Passed(&credentials), success_callback,
failure_callback),
@@ -220,9 +216,7 @@ void ChromeNetworkingCastPrivateDelegate::VerifyAndEncryptData(
const DataCallback& success_callback,
const FailureCallback& failure_callback) {
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE,
- base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_VISIBLE),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE},
base::Bind(&RunVerifyAndEncryptData, data, base::Passed(&credentials)),
base::Bind(&VerifyAndEncryptDataCompleted, success_callback,
failure_callback));

Powered by Google App Engine
This is Rietveld 408576698