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

Unified Diff: components/ntp_snippets/ntp_snippets_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/ntp_snippets_service.cc
diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc
index 8ad028bfff07ccd17b6491ef1720c9b36327b1e9..59b67d650c5c2111081643db4f9997ac115f836c 100644
--- a/components/ntp_snippets/ntp_snippets_service.cc
+++ b/components/ntp_snippets/ntp_snippets_service.cc
@@ -695,7 +695,7 @@ void NTPSnippetsService::OnSnippetImageDecodedFromDatabase(
const std::string& snippet_id,
const gfx::Image& image) {
if (!image.IsEmpty()) {
- callback.Run(MakeUniqueID(provided_category_, snippet_id), image);
+ callback.Run(image);
return;
}
@@ -742,7 +742,7 @@ void NTPSnippetsService::OnSnippetImageDecodedFromNetwork(
const ImageFetchedCallback& callback,
const std::string& snippet_id,
const gfx::Image& image) {
- callback.Run(MakeUniqueID(provided_category_, snippet_id), image);
+ callback.Run(image);
}
void NTPSnippetsService::EnterStateEnabled(bool fetch_snippets) {

Powered by Google App Engine
This is Rietveld 408576698