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

Unified Diff: extensions/browser/image_loader.cc

Issue 2859933002: Use constexpr TaskTraits constructor in extensions. (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
« no previous file with comments | « extensions/browser/extension_protocols.cc ('k') | extensions/browser/updater/update_client_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/image_loader.cc
diff --git a/extensions/browser/image_loader.cc b/extensions/browser/image_loader.cc
index cf2fea865990433875d2ae5c355d09628773a526..708b20512c8f4e5c5864cf4d2dcb00ddb16c0bd8 100644
--- a/extensions/browser/image_loader.cc
+++ b/extensions/browser/image_loader.cc
@@ -265,8 +265,7 @@ void ImageLoader::LoadImagesAsync(
const ImageLoaderImageCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_VISIBLE),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE},
base::Bind(LoadImagesBlocking, info_list,
LoadResourceBitmaps(extension, info_list)),
base::Bind(&ImageLoader::ReplyBack, weak_ptr_factory_.GetWeakPtr(),
@@ -279,8 +278,7 @@ void ImageLoader::LoadImageFamilyAsync(
const ImageLoaderImageFamilyCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
base::PostTaskWithTraitsAndReplyWithResult(
- FROM_HERE, base::TaskTraits().MayBlock().WithPriority(
- base::TaskPriority::USER_VISIBLE),
+ FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE},
base::Bind(LoadImagesBlocking, info_list,
LoadResourceBitmaps(extension, info_list)),
base::Bind(&ImageLoader::ReplyBackWithImageFamily,
« no previous file with comments | « extensions/browser/extension_protocols.cc ('k') | extensions/browser/updater/update_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698