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

Issue 2724313003: Tiles On NTP (copy): fetch popular sites icons for 2nd NTP (Closed)

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

Description

Tiles On NTP (copy): fetch popular sites icons for 2nd NTP This CL is a copy of https://codereview.chromium.org/2720513004/ to change ownership. Copied description: 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 Review-Url: https://codereview.chromium.org/2724313003 Cr-Commit-Position: refs/heads/master@{#454428} Committed: https://chromium.googlesource.com/chromium/src/+/b21ac75e9523f23a71e27ed0455c93815e65f49b

Patch Set 1 #

Patch Set 2 : Rebase #

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

Depends on Patchset:

Messages

Total messages: 21 (13 generated)
fhorschig
Hi Marc, could you please take a look? (I copied this CL from Chris, in ...
3 years, 9 months ago (2017-03-02 16:30:17 UTC) #1
sfiera
LGTM (this isn't the exact same thing that I wrote, so my LGTM still counts, ...
3 years, 9 months ago (2017-03-02 19:31:59 UTC) #8
fhorschig
On 2017/03/02 19:31:59, sfiera wrote: > LGTM > > (this isn't the exact same thing ...
3 years, 9 months ago (2017-03-02 19:41:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2724313003/20001
3 years, 9 months ago (2017-03-02 23:17:53 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/b21ac75e9523f23a71e27ed0455c93815e65f49b
3 years, 9 months ago (2017-03-02 23:23:45 UTC) #17
Marc Treib
https://codereview.chromium.org/2724313003/diff/20001/components/ntp_tiles/most_visited_sites.cc File components/ntp_tiles/most_visited_sites.cc (right): https://codereview.chromium.org/2724313003/diff/20001/components/ntp_tiles/most_visited_sites.cc#newcode425 components/ntp_tiles/most_visited_sites.cc:425: icon_cacher_->StartFetch(popular_site, base::Closure(), base::Closure()); IconCacherImpl DCHECKs that the first closure ...
3 years, 9 months ago (2017-03-03 09:40:45 UTC) #19
fhorschig
https://codereview.chromium.org/2724313003/diff/20001/components/ntp_tiles/most_visited_sites.cc File components/ntp_tiles/most_visited_sites.cc (right): https://codereview.chromium.org/2724313003/diff/20001/components/ntp_tiles/most_visited_sites.cc#newcode425 components/ntp_tiles/most_visited_sites.cc:425: icon_cacher_->StartFetch(popular_site, base::Closure(), base::Closure()); On 2017/03/03 09:40:44, Marc Treib wrote: ...
3 years, 9 months ago (2017-03-03 10:27:20 UTC) #20
fhorschig
3 years, 9 months ago (2017-03-03 10:27:21 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/2724313003/diff/20001/components/ntp_tiles/mo...
File components/ntp_tiles/most_visited_sites.cc (right):

https://codereview.chromium.org/2724313003/diff/20001/components/ntp_tiles/mo...
components/ntp_tiles/most_visited_sites.cc:425:
icon_cacher_->StartFetch(popular_site, base::Closure(), base::Closure());
On 2017/03/03 09:40:44, Marc Treib wrote:
> IconCacherImpl DCHECKs that the first closure isn't null - looks like this
would
> trigger that?
> Did I miss something?

Yes, there is a fix for that:
https://codereview.chromium.org/2725293002/

If that isn't fast enough, I can also rollback.

Powered by Google App Engine
This is Rietveld 408576698