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

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: fix android_clang_dbg_recipe build 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..7b7eb35b6bafa635d64bf968a7fca003161f0a3e 100644
--- a/components/suggestions/suggestions_service.cc
+++ b/components/suggestions/suggestions_service.cc
@@ -148,10 +148,18 @@ void SuggestionsService::FetchSuggestionsData(
void SuggestionsService::GetPageThumbnail(
const GURL& url,
- base::Callback<void(const GURL&, const SkBitmap*)> callback) {
+ const base::Callback<void(const GURL&, const SkBitmap*)>& callback) {
thumbnail_manager_->GetImageForURL(url, callback);
}
+void SuggestionsService::GetPageThumbnailWithURL(
+ const GURL& url,
+ const GURL& thumbnail_url,
+ const 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,
« no previous file with comments | « components/suggestions/suggestions_service.h ('k') | components/suggestions/suggestions_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698