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

Unified Diff: components/suggestions/suggestions_service.cc

Issue 1314493013: Popular sites on the NTP: add thumbnails! (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 5 years, 3 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/suggestions/suggestions_service.cc
diff --git a/components/suggestions/suggestions_service.cc b/components/suggestions/suggestions_service.cc
index 666ee51bcc3b01208fb16bdec746ae7fa2fb0700..88f95412b2d890215f629a528db9124c2f3908f8 100644
--- a/components/suggestions/suggestions_service.cc
+++ b/components/suggestions/suggestions_service.cc
@@ -152,6 +152,14 @@ void SuggestionsService::GetPageThumbnail(
thumbnail_manager_->GetImageForURL(url, callback);
}
+void SuggestionsService::GetPageThumbnailWithURL(
+ const GURL& url,
+ const GURL& thumbnail_url,
+ base::Callback<void(const GURL&, const SkBitmap*)> callback) {
+ thumbnail_manager_->AddImageURL(url, thumbnail_url);
+ GetPageThumbnail(url, callback);
+}
+
void SuggestionsService::BlacklistURL(
const GURL& candidate_url,
const SuggestionsService::ResponseCallback& callback,
« components/suggestions/suggestions_service.h ('K') | « components/suggestions/suggestions_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698