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

Issue 2577253003: ntp_tiles: Avoid redundant calls to TopSites (Closed)

Created:
4 years ago by mastiz
Modified:
3 years, 11 months ago
Reviewers:
sfiera
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ntp_tiles: Avoid redundant calls to TopSites The redundant calls cause propagating redundant updates to client observers, as reflected by tests. This should be harmless, but let's avoid possible UI flickering. BUG=674909 Review-Url: https://codereview.chromium.org/2577253003 Cr-Commit-Position: refs/heads/master@{#442234} Committed: https://chromium.googlesource.com/chromium/src/+/d0da75e5f451ce330c3cc3c1448c624a88e5af1b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Renamed weak ptr factory. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -10 lines) Patch
M components/ntp_tiles/most_visited_sites.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M components/ntp_tiles/most_visited_sites.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M components/ntp_tiles/most_visited_sites_unittest.cc View 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
mastiz
4 years ago (2016-12-16 16:00:25 UTC) #2
sfiera
https://codereview.chromium.org/2577253003/diff/1/components/ntp_tiles/most_visited_sites.cc File components/ntp_tiles/most_visited_sites.cc (right): https://codereview.chromium.org/2577253003/diff/1/components/ntp_tiles/most_visited_sites.cc#newcode172 components/ntp_tiles/most_visited_sites.cc:172: if (weak_ptr_factory_.HasWeakPtrs()) This seems brittle—it assumes we won't ever ...
4 years ago (2016-12-16 16:15:03 UTC) #3
mastiz
https://codereview.chromium.org/2577253003/diff/1/components/ntp_tiles/most_visited_sites.cc File components/ntp_tiles/most_visited_sites.cc (right): https://codereview.chromium.org/2577253003/diff/1/components/ntp_tiles/most_visited_sites.cc#newcode172 components/ntp_tiles/most_visited_sites.cc:172: if (weak_ptr_factory_.HasWeakPtrs()) On 2016/12/16 16:15:03, sfiera wrote: > This ...
3 years, 11 months ago (2017-01-05 11:50:45 UTC) #4
sfiera
On 2017/01/05 11:50:45, mastiz wrote: > https://codereview.chromium.org/2577253003/diff/1/components/ntp_tiles/most_visited_sites.cc > File components/ntp_tiles/most_visited_sites.cc (right): > > https://codereview.chromium.org/2577253003/diff/1/components/ntp_tiles/most_visited_sites.cc#newcode172 > ...
3 years, 11 months ago (2017-01-05 13:22:09 UTC) #5
mastiz
On 2017/01/05 13:22:09, sfiera wrote: > On 2017/01/05 11:50:45, mastiz wrote: > > > https://codereview.chromium.org/2577253003/diff/1/components/ntp_tiles/most_visited_sites.cc ...
3 years, 11 months ago (2017-01-09 08:50:49 UTC) #6
sfiera
LGTM
3 years, 11 months ago (2017-01-09 09:57:42 UTC) #7
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/2577253003/20001
3 years, 11 months ago (2017-01-09 10:21:03 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 11:37:19 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d0da75e5f451ce330c3cc3c1448c...

Powered by Google App Engine
This is Rietveld 408576698