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

Issue 2866033002: [NTP Tiles] Fetch missing MostLikely tiles from a Google server (Closed)

Created:
3 years, 7 months ago by jkrcal
Modified:
3 years, 7 months ago
Reviewers:
pkotwicz, sfiera
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, ntp-dev+reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Tiles] Fetch missing MostLikely tiles from a Google server This CL extends the IconCacher to support caching also for MostLikely tiles (via the prefetching functionality of LargeIconService). The new feature is guarded behind an experimental feature (for both Android and iOS). BUG=536988 Review-Url: https://codereview.chromium.org/2866033002 Cr-Commit-Position: refs/heads/master@{#471365} Committed: https://chromium.googlesource.com/chromium/src/+/43f24f8751ec2d4d056623977fb49adc6dce18ae

Patch Set 1 #

Patch Set 2 : Some unit-tests #

Total comments: 14

Patch Set 3 : Finishing unit-tests and comments #1 #

Total comments: 4

Patch Set 4 : Comments #2 #

Total comments: 2

Patch Set 5 : Comments #3 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -111 lines) Patch
M chrome/browser/ntp_tiles/chrome_most_visited_sites_factory.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M components/favicon/core/large_icon_service.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/ntp_tiles/icon_cacher.h View 1 2 2 chunks +14 lines, -8 lines 0 comments Download
M components/ntp_tiles/icon_cacher_impl.h View 1 2 4 chunks +21 lines, -4 lines 0 comments Download
M components/ntp_tiles/icon_cacher_impl.cc View 1 2 3 4 6 chunks +62 lines, -4 lines 2 comments Download
M components/ntp_tiles/icon_cacher_impl_unittest.cc View 1 2 3 9 chunks +250 lines, -91 lines 0 comments Download
M components/ntp_tiles/most_visited_sites.cc View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M components/ntp_tiles/most_visited_sites_unittest.cc View 1 6 chunks +26 lines, -2 lines 0 comments Download
M ios/chrome/browser/ntp_tiles/ios_most_visited_sites_factory.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
jkrcal
Peter, could you PTAL at components/favicon_base/? Chris, I still want to add some unit-tests into ...
3 years, 7 months ago (2017-05-08 18:31:58 UTC) #2
sfiera
Looks good, other than the missing tests :) https://codereview.chromium.org/2866033002/diff/20001/components/favicon_base/favicon_types.cc File components/favicon_base/favicon_types.cc (right): https://codereview.chromium.org/2866033002/diff/20001/components/favicon_base/favicon_types.cc#newcode44 components/favicon_base/favicon_types.cc:44: fallback_icon_style->is_default_background_color); ...
3 years, 7 months ago (2017-05-09 08:53:36 UTC) #3
pkotwicz
https://codereview.chromium.org/2866033002/diff/20001/components/favicon_base/favicon_types.cc File components/favicon_base/favicon_types.cc (right): https://codereview.chromium.org/2866033002/diff/20001/components/favicon_base/favicon_types.cc#newcode44 components/favicon_base/favicon_types.cc:44: fallback_icon_style->is_default_background_color); It would be nice if FallbackIconStyle had a ...
3 years, 7 months ago (2017-05-09 17:40:34 UTC) #4
jkrcal
Thanks! PTAL, again. The unit-tests should be complete, now. https://codereview.chromium.org/2866033002/diff/20001/components/favicon_base/favicon_types.cc File components/favicon_base/favicon_types.cc (right): https://codereview.chromium.org/2866033002/diff/20001/components/favicon_base/favicon_types.cc#newcode44 components/favicon_base/favicon_types.cc:44: ...
3 years, 7 months ago (2017-05-10 17:26:03 UTC) #5
sfiera
LGTM https://codereview.chromium.org/2866033002/diff/40001/components/ntp_tiles/icon_cacher_impl_unittest.cc File components/ntp_tiles/icon_cacher_impl_unittest.cc (right): https://codereview.chromium.org/2866033002/diff/40001/components/ntp_tiles/icon_cacher_impl_unittest.cc#newcode386 components/ntp_tiles/icon_cacher_impl_unittest.cc:386: image_fetcher_unused_( The difference between image_fetcher_ and image_fetcher_unused_ is ...
3 years, 7 months ago (2017-05-11 10:34:41 UTC) #10
jkrcal
Thanks! Peter, could you please take another look? https://codereview.chromium.org/2866033002/diff/40001/components/ntp_tiles/icon_cacher_impl_unittest.cc File components/ntp_tiles/icon_cacher_impl_unittest.cc (right): https://codereview.chromium.org/2866033002/diff/40001/components/ntp_tiles/icon_cacher_impl_unittest.cc#newcode386 components/ntp_tiles/icon_cacher_impl_unittest.cc:386: image_fetcher_unused_( ...
3 years, 7 months ago (2017-05-11 16:08:31 UTC) #11
pkotwicz
https://codereview.chromium.org/2866033002/diff/60001/components/favicon_base/favicon_types.cc File components/favicon_base/favicon_types.cc (right): https://codereview.chromium.org/2866033002/diff/60001/components/favicon_base/favicon_types.cc#newcode41 components/favicon_base/favicon_types.cc:41: bool LargeIconResult::is_empty() const { I think that the implementation ...
3 years, 7 months ago (2017-05-12 07:40:39 UTC) #12
jkrcal
Thanks! Peter, can you please still look at the last remaining file in favicon? https://codereview.chromium.org/2866033002/diff/60001/components/favicon_base/favicon_types.cc ...
3 years, 7 months ago (2017-05-12 11:49:03 UTC) #13
pkotwicz
LGTM
3 years, 7 months ago (2017-05-12 15:40:04 UTC) #18
pkotwicz
https://codereview.chromium.org/2866033002/diff/80001/components/ntp_tiles/icon_cacher_impl.cc File components/ntp_tiles/icon_cacher_impl.cc (right): https://codereview.chromium.org/2866033002/diff/80001/components/ntp_tiles/icon_cacher_impl.cc#newcode50 components/ntp_tiles/icon_cacher_impl.cc:50: return result.fallback_icon_style->is_default_background_color; Nit: return result.fallback_icon_style && result.fallback_icon_style->is_default_background_color
3 years, 7 months ago (2017-05-12 15:40:19 UTC) #19
jkrcal
Thanks! https://codereview.chromium.org/2866033002/diff/80001/components/ntp_tiles/icon_cacher_impl.cc File components/ntp_tiles/icon_cacher_impl.cc (right): https://codereview.chromium.org/2866033002/diff/80001/components/ntp_tiles/icon_cacher_impl.cc#newcode50 components/ntp_tiles/icon_cacher_impl.cc:50: return result.fallback_icon_style->is_default_background_color; On 2017/05/12 15:40:18, pkotwicz wrote: > ...
3 years, 7 months ago (2017-05-12 17:08:59 UTC) #20
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/2866033002/80001
3 years, 7 months ago (2017-05-12 17:10:31 UTC) #23
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 18:06:32 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/43f24f8751ec2d4d056623977fb4...

Powered by Google App Engine
This is Rietveld 408576698