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

Issue 2816113002: Fix to not create jumplist icon files that aren't used by shell (Closed)

Created:
3 years, 8 months ago by chengx
Modified:
3 years, 7 months ago
Reviewers:
Patrick Monette, gab
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix to not create jumplist icon files that aren't used by shell The current implementation creates more icon files than necessary. In more details, it first creates icon files for all the retrieved most visited pages and recently closed pages. The total number of icon files created is up to 24. However, only at most 10 icons will be used by the shell. The extra file IO is completely unnecessary. This CL fixes this issue by only creating the icon files that are used by shell. BUG=40407, 179576, 715902 Review-Url: https://codereview.chromium.org/2816113002 Cr-Commit-Position: refs/heads/master@{#465002} Committed: https://chromium.googlesource.com/chromium/src/+/a27e1c2a48ee40ed2df55effe6d7a15242dd6933

Patch Set 1 #

Patch Set 2 : Update UMA histogram function's position to make it more accurate #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -24 lines) Patch
M chrome/browser/win/jumplist.cc View 1 4 chunks +26 lines, -24 lines 2 comments Download

Messages

Total messages: 34 (27 generated)
chengx
PTAL~
3 years, 8 months ago (2017-04-13 23:03:37 UTC) #17
chengx
Gentle ping~ Adding another owner pmonette@ in case gab@ is busy. Hopeing this CL can ...
3 years, 8 months ago (2017-04-17 18:27:17 UTC) #20
Patrick Monette
lgtm
3 years, 8 months ago (2017-04-17 20:18:43 UTC) #25
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/2816113002/40001
3 years, 8 months ago (2017-04-17 20:21:51 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:40001) as https://chromium.googlesource.com/chromium/src/+/a27e1c2a48ee40ed2df55effe6d7a15242dd6933
3 years, 8 months ago (2017-04-17 20:31:38 UTC) #30
gab
lgtm https://codereview.chromium.org/2816113002/diff/40001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2816113002/diff/40001/chrome/browser/win/jumplist.cc#newcode230 chrome/browser/win/jumplist.cc:230: SCOPED_UMA_HISTOGRAM_TIMER("WinJumplist.UpdateJumpListDuration"); This changed the timing of this histogram ...
3 years, 8 months ago (2017-04-18 19:21:11 UTC) #31
chengx
3 years, 8 months ago (2017-04-18 19:31:48 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/2816113002/diff/40001/chrome/browser/win/jump...
File chrome/browser/win/jumplist.cc (right):

https://codereview.chromium.org/2816113002/diff/40001/chrome/browser/win/jump...
chrome/browser/win/jumplist.cc:230:
SCOPED_UMA_HISTOGRAM_TIMER("WinJumplist.UpdateJumpListDuration");
On 2017/04/18 19:21:11, gab wrote:
> This changed the timing of this histogram without renaming it, typically we
> would have made this "WinJumplist.UpdateJumpListDuration2" in this change.
> 
> Now, after commit, though I guess it's fine if you'll always filter by version
> while investigating and remove it later.

I am now heavily using version filters (thanks for pointing me to that
functionality), so I think this is fine for debugging purpose.

Powered by Google App Engine
This is Rietveld 408576698