Commit f0f53fff authored by Brandon Wylie's avatar Brandon Wylie Committed by Commit Bot

[Image Fetcher] Replace BindRepeating with BindOnce

A previous change made ImageDecoder take a OnceCallback, using that
here to eliminate BindRepeating and Passed.

Bug: 946757
Change-Id: Id31ee666738efe3d4a1672b14b286fb9e5459188
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1617093Reviewed-by: default avatarSky Malice <skym@chromium.org>
Commit-Queue: Brandon Wylie <wylieb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661025}
parent 34ecc4a3
......@@ -146,11 +146,10 @@ void CachedImageFetcher::OnImageFetchedFromCache(
if (!image_callback.is_null()) {
GetImageDecoder()->DecodeImage(
image_data, gfx::Size(),
base::BindRepeating(&CachedImageFetcher::OnImageDecodedFromCache,
weak_ptr_factory_.GetWeakPtr(),
std::move(request),
base::Passed(std::move(image_data_callback)),
base::Passed(std::move(image_callback))));
base::BindOnce(&CachedImageFetcher::OnImageDecodedFromCache,
weak_ptr_factory_.GetWeakPtr(), std::move(request),
std::move(image_data_callback),
std::move(image_callback)));
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment