Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: components/ntp_snippets/content_suggestions_service.cc

Issue 2280543003: Remove snippet_id from ImageFetchedCallback (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/ntp_snippets/content_suggestions_service.cc
diff --git a/components/ntp_snippets/content_suggestions_service.cc b/components/ntp_snippets/content_suggestions_service.cc
index 1da49f5cfd53dda8781c150fa113ec6be6c49cc9..1072b9c449893070ce83f0fb1ccc044039c34c0e 100644
--- a/components/ntp_snippets/content_suggestions_service.cc
+++ b/components/ntp_snippets/content_suggestions_service.cc
@@ -66,7 +66,7 @@ void ContentSuggestionsService::FetchSuggestionImage(
if (!id_category_map_.count(suggestion_id)) {
LOG(WARNING) << "Requested image for unknown suggestion " << suggestion_id;
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(callback, suggestion_id, gfx::Image()));
+ FROM_HERE, base::Bind(callback, gfx::Image()));
return;
}
Category category = id_category_map_.at(suggestion_id);
@@ -74,7 +74,7 @@ void ContentSuggestionsService::FetchSuggestionImage(
LOG(WARNING) << "Requested image for suggestion " << suggestion_id
<< " for unavailable category " << category;
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(callback, suggestion_id, gfx::Image()));
+ FROM_HERE, base::Bind(callback, gfx::Image()));
return;
}
providers_by_category_[category]->FetchSuggestionImage(suggestion_id,
« no previous file with comments | « components/ntp_snippets/content_suggestions_service.h ('k') | components/ntp_snippets/content_suggestions_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698