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

Unified Diff: components/ntp_tiles/most_visited_sites.cc

Issue 2724313003: Tiles On NTP (copy): fetch popular sites icons for 2nd NTP (Closed)
Patch Set: Rebase Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_tiles/most_visited_sites.cc
diff --git a/components/ntp_tiles/most_visited_sites.cc b/components/ntp_tiles/most_visited_sites.cc
index 4f7c845a6919c83aafb82aaa57673ad309fc1ec6..800ccb422c211f7a925e8f4e913de8598cd15a63 100644
--- a/components/ntp_tiles/most_visited_sites.cc
+++ b/components/ntp_tiles/most_visited_sites.cc
@@ -419,6 +419,11 @@ void MostVisitedSites::OnPopularSitesDownloaded(bool success) {
LOG(WARNING) << "Download of popular sites failed";
return;
}
+
+ for (const PopularSites::Site& popular_site : popular_sites_->sites()) {
+ // Ignore callback; these icons will be seen on the *next* NTP.
+ icon_cacher_->StartFetch(popular_site, base::Closure(), base::Closure());
Marc Treib 2017/03/03 09:40:44 IconCacherImpl DCHECKs that the first closure isn'
fhorschig 2017/03/03 10:27:21 Yes, there is a fix for that: https://codereview.c
+ }
}
void MostVisitedSites::OnIconMadeAvailable(const GURL& site_url) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698