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

Issue 2887383003: Refresh the Most Visited tiles only on user interaction (Closed)

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

Description

Refresh the Most Visited tiles only on user interaction The Most Visited tiles presented to the user should only changes when the user interacts with them: deletion or undo deletion. BUG=712632 Review-Url: https://codereview.chromium.org/2887383003 Cr-Commit-Position: refs/heads/master@{#473887} Committed: https://chromium.googlesource.com/chromium/src/+/dfc8047496d837d2b9915dd40f5f84ef51853a0e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -2 lines) Patch
M ios/chrome/browser/ui/ntp/google_landing_mediator.mm View 1 6 chunks +30 lines, -2 lines 4 comments Download

Messages

Total messages: 21 (11 generated)
gambard
PTAL :)
3 years, 7 months ago (2017-05-19 13:02:46 UTC) #2
fhorschig
Thank you very much! lgtm with comment. https://codereview.chromium.org/2887383003/diff/1/ios/chrome/browser/ui/ntp/google_landing_mediator.mm File ios/chrome/browser/ui/ntp/google_landing_mediator.mm (right): https://codereview.chromium.org/2887383003/diff/1/ios/chrome/browser/ui/ntp/google_landing_mediator.mm#newcode251 ios/chrome/browser/ui/ntp/google_landing_mediator.mm:251: if (_mostVisitedData.size() ...
3 years, 7 months ago (2017-05-19 13:09:57 UTC) #3
gambard
Thanks. noyau@: PTAL and land it if it is OK with you. https://codereview.chromium.org/2887383003/diff/1/ios/chrome/browser/ui/ntp/google_landing_mediator.mm File ios/chrome/browser/ui/ntp/google_landing_mediator.mm ...
3 years, 7 months ago (2017-05-19 13:41:20 UTC) #5
noyau (Ping after 24h)
lgtm
3 years, 7 months ago (2017-05-23 14:13: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/2887383003/20001
3 years, 7 months ago (2017-05-23 14:13:37 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/dfc8047496d837d2b9915dd40f5f84ef51853a0e
3 years, 7 months ago (2017-05-23 14:27:56 UTC) #16
justincohen
https://codereview.chromium.org/2887383003/diff/20001/ios/chrome/browser/ui/ntp/google_landing_mediator.mm File ios/chrome/browser/ui/ntp/google_landing_mediator.mm (right): https://codereview.chromium.org/2887383003/diff/20001/ios/chrome/browser/ui/ntp/google_landing_mediator.mm#newcode387 ios/chrome/browser/ui/ntp/google_landing_mediator.mm:387: return; should this NOTREACHED?
3 years, 7 months ago (2017-05-24 15:58:21 UTC) #18
gambard
https://codereview.chromium.org/2887383003/diff/20001/ios/chrome/browser/ui/ntp/google_landing_mediator.mm File ios/chrome/browser/ui/ntp/google_landing_mediator.mm (right): https://codereview.chromium.org/2887383003/diff/20001/ios/chrome/browser/ui/ntp/google_landing_mediator.mm#newcode387 ios/chrome/browser/ui/ntp/google_landing_mediator.mm:387: return; On 2017/05/24 15:58:21, justincohen (OOTO til Jun 5) ...
3 years, 6 months ago (2017-06-02 12:47:05 UTC) #19
justincohen
https://codereview.chromium.org/2887383003/diff/20001/ios/chrome/browser/ui/ntp/google_landing_mediator.mm File ios/chrome/browser/ui/ntp/google_landing_mediator.mm (right): https://codereview.chromium.org/2887383003/diff/20001/ios/chrome/browser/ui/ntp/google_landing_mediator.mm#newcode387 ios/chrome/browser/ui/ntp/google_landing_mediator.mm:387: return; On 2017/06/02 12:47:04, gambard wrote: > On 2017/05/24 ...
3 years, 6 months ago (2017-06-05 15:19:00 UTC) #20
gambard
3 years, 6 months ago (2017-06-06 15:34:55 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/2887383003/diff/20001/ios/chrome/browser/ui/n...
File ios/chrome/browser/ui/ntp/google_landing_mediator.mm (right):

https://codereview.chromium.org/2887383003/diff/20001/ios/chrome/browser/ui/n...
ios/chrome/browser/ui/ntp/google_landing_mediator.mm:387: return;
On 2017/06/05 15:18:59, justincohen (OOTO til Jun 5) wrote:
> On 2017/06/02 12:47:04, gambard wrote:
> > On 2017/05/24 15:58:21, justincohen (OOTO til Jun 5) wrote:
> > > should this NOTREACHED?
> > 
> > No. If you remove a tile, all the tiles are not necessarily updated. Why do
> you
> > think not REACHED would be good?
> 
> When would removing a tile not call -onMostVisitedURLsAvailable?
> 
> It seems -useFreshData is only called after changing the blacklist, which
should
> always fire 
> -onMostVisitedURLsAvailable: and set freshMostVisitedData.  I was suggesting
> that if useFreshData is called without freshMostVisitedData being set,
something
> is wrong.
> 
> If you only have 1 tile, and you add it to the blacklist, freshMostVisitedData
> won't get updated (if (_mostVisitedData.size() > 0))... so maybe it's not
worth
> it.

Actually this code do not remove the last tile. I will modify it, adding the
NOTREACHED and giving the possibility to remove the last tile.

Powered by Google App Engine
This is Rietveld 408576698