Chromium Code Reviews| Index: components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc |
| diff --git a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc |
| index d2380c8677267a65e76a71518ba5cc167c0ac8ec..bbc06e18a12495f92d5a0dc69daca8178e154dcd 100644 |
| --- a/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc |
| +++ b/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc |
| @@ -5,8 +5,11 @@ |
| #include "components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h" |
| #include "base/bind.h" |
| +#include "base/location.h" |
| #include "base/strings/string_number_conversions.h" |
| #include "base/strings/utf_string_conversions.h" |
| +#include "base/threading/thread_task_runner_handle.h" |
| +#include "ui/gfx/image/image.h" |
| using offline_pages::MultipleOfflinePageItemResult; |
| using offline_pages::OfflinePageModel; |
| @@ -58,7 +61,8 @@ void OfflinePageSuggestionsProvider::DismissSuggestion( |
| void OfflinePageSuggestionsProvider::FetchSuggestionImage( |
| const std::string& suggestion_id, |
| const ImageFetchedCallback& callback) { |
| - // TODO(pke): Implement. |
|
Marc Treib
2016/08/05 09:55:20
The TODO can probably stay :)
Philipp Keck
2016/08/05 10:01:38
Done.
|
| + base::ThreadTaskRunnerHandle::Get()->PostTask( |
| + FROM_HERE, base::Bind(callback, suggestion_id, gfx::Image())); |
| } |
| void OfflinePageSuggestionsProvider::ClearCachedSuggestionsForDebugging() { |