| 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 02524508ceca77bf9620436e54bc6604c47ab25e..7cc542e80ac8ca551d796d2c5f0f2f08720bf7a6 100644
|
| --- a/components/ntp_snippets/ntp_snippets_service.cc
|
| +++ b/components/ntp_snippets/ntp_snippets_service.cc
|
| @@ -25,6 +25,7 @@
|
| #include "components/prefs/pref_registry_simple.h"
|
| #include "components/prefs/pref_service.h"
|
| #include "components/suggestions/proto/suggestions.pb.h"
|
| +#include "ui/gfx/image/image.h"
|
|
|
| using image_fetcher::ImageFetcher;
|
| using suggestions::ChromeSuggestion;
|
| @@ -147,7 +148,10 @@ bool ContainsSnippet(const NTPSnippetsService::NTPSnippetStorage& haystack,
|
| void WrapImageFetchedCallback(
|
| const NTPSnippetsService::ImageFetchedCallback& callback,
|
| const GURL& snippet_id_url,
|
| - const SkBitmap* bitmap) {
|
| + const gfx::Image& image) {
|
| + const SkBitmap* bitmap = nullptr;
|
| + if (!image.IsEmpty())
|
| + bitmap = image.ToSkBitmap();
|
| callback.Run(snippet_id_url.spec(), bitmap);
|
| }
|
|
|
|
|