| Index: components/ntp_snippets/ntp_snippets_service.cc
|
| diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc
|
| index ac45e1536e20311d133ebabfdf07818253dba598..1e48da9fafce28240434524ed971ae44774097fb 100644
|
| --- a/components/ntp_snippets/ntp_snippets_service.cc
|
| +++ b/components/ntp_snippets/ntp_snippets_service.cc
|
| @@ -149,10 +149,7 @@ void WrapImageFetchedCallback(
|
| const NTPSnippetsService::ImageFetchedCallback& callback,
|
| const GURL& snippet_id_url,
|
| const gfx::Image& image) {
|
| - const SkBitmap* bitmap = nullptr;
|
| - if (!image.IsEmpty())
|
| - bitmap = image.ToSkBitmap();
|
| - callback.Run(snippet_id_url.spec(), bitmap);
|
| + callback.Run(snippet_id_url.spec(), image);
|
| }
|
|
|
| } // namespace
|
| @@ -248,7 +245,8 @@ void NTPSnippetsService::FetchSnippetImage(
|
| return snippet->id() == snippet_id;
|
| });
|
| if (it == snippets_.end()) {
|
| - callback.Run(snippet_id, nullptr);
|
| + gfx::Image empty_image;
|
| + callback.Run(snippet_id, empty_image);
|
| return;
|
| }
|
|
|
|
|