| 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 448c31a6acce280820f5d0f8ce06910b45af1311..aa53f82f0ba84866e6e6132e7255ce376cf7cf0d 100644
|
| --- a/components/ntp_snippets/ntp_snippets_service.cc
|
| +++ b/components/ntp_snippets/ntp_snippets_service.cc
|
| @@ -27,6 +27,7 @@
|
| #include "components/prefs/pref_service.h"
|
| #include "components/suggestions/proto/suggestions.pb.h"
|
| #include "components/variations/variations_associated_data.h"
|
| +#include "ui/gfx/image/image.h"
|
|
|
| using image_fetcher::ImageFetcher;
|
| using suggestions::ChromeSuggestion;
|
| @@ -173,8 +174,8 @@ bool ContainsSnippet(const NTPSnippet::PtrVector& haystack,
|
| void WrapImageFetchedCallback(
|
| const NTPSnippetsService::ImageFetchedCallback& callback,
|
| const GURL& snippet_id_url,
|
| - const SkBitmap* bitmap) {
|
| - callback.Run(snippet_id_url.spec(), bitmap);
|
| + const gfx::Image& image) {
|
| + callback.Run(snippet_id_url.spec(), image);
|
| }
|
|
|
| } // namespace
|
| @@ -280,7 +281,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;
|
| }
|
|
|
|
|