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

Unified Diff: components/ntp_snippets/remote/remote_suggestions_provider_impl.cc

Issue 2715153006: Set desired_image_size when decoding images for NTP Tile icons. (Closed)
Patch Set: ax Created 3 years, 10 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: components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
diff --git a/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc b/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
index dcdbe0651e6929b4689698354769b46793c775f6..19f973f23438a59452e13fa40eea92139c5377ad 100644
--- a/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
+++ b/components/ntp_snippets/remote/remote_suggestions_provider_impl.cc
@@ -218,7 +218,10 @@ void CachedImageFetcher::OnSnippetImageFetchedFromDatabase(
// |image_decoder_| is null in tests.
if (image_decoder_ && !data.empty()) {
image_decoder_->DecodeImage(
- data, base::Bind(&CachedImageFetcher::OnSnippetImageDecodedFromDatabase,
+ data,
+ // We're not dealing with multi-frame images.
+ /*desired_image_frame_size=*/gfx::Size(),
+ base::Bind(&CachedImageFetcher::OnSnippetImageDecodedFromDatabase,
base::Unretained(this), callback, suggestion_id, url));
return;
}

Powered by Google App Engine
This is Rietveld 408576698