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

Issue 2720513004: ntp_tiles: fetch popular sites icons for 2nd NTP (Closed)

Created:
3 years, 9 months ago by sfiera
Modified:
3 years, 9 months ago
Reviewers:
Marc Treib, fhorschig
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ntp_tiles: fetch popular sites icons for 2nd NTP The first-run NTP uses our bundled popular sites file along with its icons. It also starts a fetch for regionally-popular sites, but didn't also fetch their icons, meaning that the icons would pop into the second NTP after it had loaded. With this, we fetch them from the first NTP as soon as we have the regionally-popular sites. I think we've gotten ourselves into a really weird situation with ntp_tiles at this point. By and large, we don't care about the result of running popular sites; the sites are used only in the next NTP iteration. Probably time to do https://crbug.com/650589. With that, we might even have a chance to fetch regionally-popular sites before the FRE makes it to the NTP. BUG=694270

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M components/ntp_tiles/most_visited_sites.cc View 1 chunk +6 lines, -0 lines 7 comments Download

Messages

Total messages: 9 (2 generated)
sfiera
This doesn't make sense before https://crrev.com/2695713004 lands.
3 years, 9 months ago (2017-02-27 12:28:02 UTC) #2
Marc Treib
https://codereview.chromium.org/2720513004/diff/1/components/ntp_tiles/most_visited_sites.cc File components/ntp_tiles/most_visited_sites.cc (right): https://codereview.chromium.org/2720513004/diff/1/components/ntp_tiles/most_visited_sites.cc#newcode424 components/ntp_tiles/most_visited_sites.cc:424: icon_cacher_->StartFetch(popular_site, Hrm. So if the NTP gets closed in ...
3 years, 9 months ago (2017-02-27 12:33:36 UTC) #3
sfiera
https://codereview.chromium.org/2720513004/diff/1/components/ntp_tiles/most_visited_sites.cc File components/ntp_tiles/most_visited_sites.cc (right): https://codereview.chromium.org/2720513004/diff/1/components/ntp_tiles/most_visited_sites.cc#newcode424 components/ntp_tiles/most_visited_sites.cc:424: icon_cacher_->StartFetch(popular_site, On 2017/02/27 12:33:35, Marc Treib wrote: > Hrm. ...
3 years, 9 months ago (2017-02-27 12:51:33 UTC) #4
Marc Treib
lgtm https://codereview.chromium.org/2720513004/diff/1/components/ntp_tiles/most_visited_sites.cc File components/ntp_tiles/most_visited_sites.cc (right): https://codereview.chromium.org/2720513004/diff/1/components/ntp_tiles/most_visited_sites.cc#newcode425 components/ntp_tiles/most_visited_sites.cc:425: base::Bind([](bool newly_available) {})); On 2017/02/27 12:51:33, sfiera wrote: ...
3 years, 9 months ago (2017-02-27 13:09:35 UTC) #5
fhorschig
lgtm, thank you! https://codereview.chromium.org/2720513004/diff/1/components/ntp_tiles/most_visited_sites.cc File components/ntp_tiles/most_visited_sites.cc (right): https://codereview.chromium.org/2720513004/diff/1/components/ntp_tiles/most_visited_sites.cc#newcode424 components/ntp_tiles/most_visited_sites.cc:424: icon_cacher_->StartFetch(popular_site, On 2017/02/27 12:51:33, sfiera wrote: ...
3 years, 9 months ago (2017-02-27 15:40:28 UTC) #6
sfiera
I'm inclined to keep the change local. Waiting on fhorschig@'s main CL before submitting.
3 years, 9 months ago (2017-02-27 17:43:21 UTC) #7
sfiera
3 years, 9 months ago (2017-03-02 19:37:39 UTC) #8
Closing in favor of fhorschig's patched version in https://crrev.com/2724313003

Powered by Google App Engine
This is Rietveld 408576698