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

Issue 2873403002: [NTP Tiles] Avoid duplicate requests from IconCacherImpl (Closed)

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

Description

[NTP Tiles] Avoid duplicate requests from IconCacherImpl This CL adds recording of requests in-flight so that we do not issue the same network request twice. The cacher is often triggered both for PS and for ML several times in a quick succession. This is a kind of a hack to make experimentation with fetching favicons for MostLikely tiles in M60 safer (not issuing too many network requests). This should be removed once the underlying issue in most_visited_sites is addressed. BUG=720536 Review-Url: https://codereview.chromium.org/2873403002 Cr-Commit-Position: refs/heads/master@{#472861} Committed: https://chromium.googlesource.com/chromium/src/+/fc015b3cb9d91a89707e479635fad2cd3695cd1d

Patch Set 1 #

Patch Set 2 : Chris' comments #

Total comments: 4

Patch Set 3 : Chris' comments #2 #

Patch Set 4 : Fix build for windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -36 lines) Patch
M components/ntp_tiles/icon_cacher_impl.h View 1 2 chunks +13 lines, -9 lines 0 comments Download
M components/ntp_tiles/icon_cacher_impl.cc View 1 2 3 5 chunks +52 lines, -27 lines 0 comments Download
M components/ntp_tiles/icon_cacher_impl_unittest.cc View 1 2 2 chunks +61 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (17 generated)
jkrcal
Chris, could you PTAL? (feel free to suggest another reviewer if you want to get ...
3 years, 7 months ago (2017-05-10 17:54:10 UTC) #3
sfiera
This implementation feels like it violates the expected API of the icon cacher. You might ...
3 years, 7 months ago (2017-05-15 15:13:31 UTC) #7
jkrcal
Thanks! Could you PTAL, again?
3 years, 7 months ago (2017-05-17 08:48:39 UTC) #8
sfiera
LGTM with optional suggestions https://codereview.chromium.org/2873403002/diff/20001/components/ntp_tiles/icon_cacher_impl.cc File components/ntp_tiles/icon_cacher_impl.cc (right): https://codereview.chromium.org/2873403002/diff/20001/components/ntp_tiles/icon_cacher_impl.cc#newcode214 components/ntp_tiles/icon_cacher_impl.cc:214: if (newly_available && callback) { ...
3 years, 7 months ago (2017-05-17 09:11:51 UTC) #9
jkrcal
Thanks! https://codereview.chromium.org/2873403002/diff/20001/components/ntp_tiles/icon_cacher_impl.cc File components/ntp_tiles/icon_cacher_impl.cc (right): https://codereview.chromium.org/2873403002/diff/20001/components/ntp_tiles/icon_cacher_impl.cc#newcode214 components/ntp_tiles/icon_cacher_impl.cc:214: if (newly_available && callback) { On 2017/05/17 09:11:51, ...
3 years, 7 months ago (2017-05-17 11:41:08 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/2873403002/60001
3 years, 7 months ago (2017-05-18 15:27:39 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 17:43:37 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/fc015b3cb9d91a89707e479635fa...

Powered by Google App Engine
This is Rietveld 408576698