Commit 15343e30 authored by gambard's avatar gambard Committed by Commit bot

ReadingListProvider returns empty image

The Reading List provider does not have an image to provide to the UI.
The FetchImage method runs the callback with an empty image.

BUG=702241

Review-Url: https://codereview.chromium.org/2802973004
Cr-Commit-Position: refs/heads/master@{#462840}
parent d672606e
......@@ -18,6 +18,7 @@
#include "components/strings/grit/components_strings.h"
#include "components/url_formatter/url_formatter.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/image/image.h"
namespace ntp_snippets {
......@@ -75,7 +76,8 @@ void ReadingListSuggestionsProvider::DismissSuggestion(
void ReadingListSuggestionsProvider::FetchSuggestionImage(
const ContentSuggestion::ID& suggestion_id,
const ImageFetchedCallback& callback) {
// TODO(crbug.com/702241): Implement this method.
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(callback, gfx::Image()));
}
void ReadingListSuggestionsProvider::Fetch(
......
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