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

Issue 2865133003: Defer syncing TopSites with history until the first tab closure (Closed)

Created:
3 years, 7 months ago by chengx
Modified:
3 years, 7 months ago
Reviewers:
gab, grt (UTC plus 2)
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Defer syncing TopSites with history until the first tab closure This change defers syncing TopSites with history until the first tab closure and ignores any TopSites updates that arrive before that time. It also makes the category titles ever-present in the JumpList and removes the old balancing strategy that used to show more most visited items when there were fewer than 3 recently closed items. The JumpList will now retain its items from a previous launch until the first tab closure, making it more useful early on in the browser's lifetime. Also, there will be no unnecessary TopSites syncs now if an user launches Chrome but shuts it down before opening any tabs. After that initial tab closure, all old recently closed items are lost as it is not possible to query Windows for them. Removal of the balancing strategy trims out waste resulting from fetching 9 items initially, which are then trimmed down as tabs are closed. BUG=721484, 721486 Review-Url: https://codereview.chromium.org/2865133003 Cr-Commit-Position: refs/heads/master@{#473747} Committed: https://chromium.googlesource.com/chromium/src/+/55c71f0ff307dfc3b3e561a2f72e90bb3df05393

Patch Set 1 #

Patch Set 2 : Delay the history sync until 3 tabs are closed rather than 3 recently closed category updates are scheduled #

Total comments: 2

Patch Set 3 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into cancelfirstmostvisited… #

Patch Set 4 : Address comments #

Total comments: 4

Patch Set 5 : Address comments from grt@ #

Total comments: 4

Patch Set 6 : Address comments form gab@ #

Patch Set 7 : Git pull and fix merge conflicts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -50 lines) Patch
M chrome/browser/win/jumplist.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/win/jumplist.cc View 1 2 3 4 5 6 11 chunks +40 lines, -50 lines 0 comments Download

Messages

Total messages: 104 (89 generated)
chengx
PTAL, thanks!
3 years, 7 months ago (2017-05-11 07:15:05 UTC) #27
gab
I'm probably not fully understanding the issue, perhaps a dedicated bug with screenshots would help? ...
3 years, 7 months ago (2017-05-11 15:02:52 UTC) #30
chengx
I've filed bugs 721484 and 721486 to describe the two issues mentioned in the CL ...
3 years, 7 months ago (2017-05-11 19:14:32 UTC) #33
chengx
Hi Gabriel, I've updated the CL description to make it clearer. Hope it helps. Thanks! ...
3 years, 7 months ago (2017-05-12 06:38:47 UTC) #54
chengx
Adding grt@ for suggestions.
3 years, 7 months ago (2017-05-12 06:42:24 UTC) #56
gab
I'm not a fan of piling on ints/bools logic, this is how we end up ...
3 years, 7 months ago (2017-05-12 18:13:36 UTC) #59
grt (UTC plus 2)
While we can't ask the OS to tell us what is in the jumplist, we ...
3 years, 7 months ago (2017-05-15 11:39:22 UTC) #60
chengx
Hi Greg and Gabriel, please see my replies to your comments below. ================================== ====== From ...
3 years, 7 months ago (2017-05-18 00:51:00 UTC) #63
grt (UTC plus 2)
I find it a bit hard to follow the CL description. It seems to explain ...
3 years, 7 months ago (2017-05-18 09:35:15 UTC) #70
chengx
Hi Greg, thanks a lot for your suggestions on CL description. I was amazed by ...
3 years, 7 months ago (2017-05-19 02:11:59 UTC) #79
grt (UTC plus 2)
Super! Thanks for the updates. LGTM.
3 years, 7 months ago (2017-05-19 08:05:17 UTC) #80
gab
lgtm w/ nit and comment about a simplification I'd like to see. https://codereview.chromium.org/2865133003/diff/240001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc ...
3 years, 7 months ago (2017-05-19 15:13:27 UTC) #81
chengx
Hi Gab, I've addressed your comments in the new patch set. Thanks! https://codereview.chromium.org/2865133003/diff/240001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc ...
3 years, 7 months ago (2017-05-22 23:36:00 UTC) #98
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/2865133003/320001
3 years, 7 months ago (2017-05-22 23:37:01 UTC) #101
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 23:42:05 UTC) #104
Message was sent while issue was closed.
Committed patchset #7 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/55c71f0ff307dfc3b3e561a2f72e...

Powered by Google App Engine
This is Rietveld 408576698