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

Issue 2844463003: Fix the number of JumpList slots assigned to each JumpList category (Closed)

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

Description

Fix the number of JumpList slots assigned to each JumpList category By default, the maximum number of items to display in JumpList is 10 per Windows. Previously, we considered there'are 10 available JumpList slots, and we assign these slots to "Most visit" and "Recently closed" categories accordingly. However, each category title takes one slot. Therefore, the number of JumpList slots assigned to each category is incorrect. This caused bug 714925, "Recently closed category of JumpList won't show up until closing three websites instead of one". To fix this, we need to adjust the number of available JumpList slots based on the presence of the two JumpList categories. If one of the categories presents, there'll be one available slot less. If both categories present, there'll be two available slots less. Since now the number of available slots is 1 or 2 less as it should be, we're now deleting and creating 1 or 2 less icons per JumpList update. This saves some disk IO. Note that the current implementation deletes 10 icons followed by creating 10 icons per JumpList update. BUG=714925, 40407, 179576 Review-Url: https://codereview.chromium.org/2844463003 Cr-Commit-Position: refs/heads/master@{#467094} Committed: https://chromium.googlesource.com/chromium/src/+/b60799e04934ed8a06d47beafffd1d28b995915f

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -11 lines) Patch
M chrome/browser/win/jumplist.cc View 1 2 chunks +22 lines, -11 lines 0 comments Download

Messages

Total messages: 23 (18 generated)
chengx
This change was part of crrev.com/2836873003. Since it has a different focus, now I put ...
3 years, 8 months ago (2017-04-25 18:04:11 UTC) #6
gab
lgtm https://codereview.chromium.org/2844463003/diff/1/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2844463003/diff/1/chrome/browser/win/jumplist.cc#newcode224 chrome/browser/win/jumplist.cc:224: // Adjust the available jumplist slots accordingly. // ...
3 years, 8 months ago (2017-04-25 18:43:11 UTC) #7
chengx
All the feedback comments are addressed. Thanks! https://codereview.chromium.org/2844463003/diff/1/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2844463003/diff/1/chrome/browser/win/jumplist.cc#newcode224 chrome/browser/win/jumplist.cc:224: // Adjust ...
3 years, 8 months ago (2017-04-25 19:36:59 UTC) #12
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/2844463003/20001
3 years, 8 months ago (2017-04-25 20:17:10 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 20:26:27 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b60799e04934ed8a06d47beafffd...

Powered by Google App Engine
This is Rietveld 408576698