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

Issue 2778513002: Delete JumpListIconsOld and update revised links in every update (Closed)

Created:
3 years, 9 months ago by chengx
Modified:
3 years, 9 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete JumpListIconsOld and update revised links in every update This CL includes the following changes: 1) In crrev.com/2752063002 landed recently, when JumpListIcons is not empty or doesn't exist, we are not trying to delete JumpListIconsOld. This is not optimal, as deleting JumpListIconsOld is now independent of the folder status of JumpListIcons. 2) When the JumpListIcons folder is not empty after the deletion of its content, currently we skip creating the new icons as well as updating the revised links. However, updating the links shouldn't be skipped as it doesn't involve file IO. This CL fixes it. 3) This CL logs more detailed directory information for jumplist folders to UMA. In addition to logging if the folder is empty or not, it now also logs if the folder exists or not. 4) Use base::IsDirectoryEmpty to replace PathIsDirectoryEmpty Windows API. Thus we can remove the inclusion of Shlwapi.h in a few files. 5) Reduce the limit of files to delete from 100 to 60. One reason is that setting the limit to more than twice of the normal amount is more than enough. Another reason is that we are now trying to delete JumpListIconsOld folder in every jumplist update. BUG=40407, 179576 Review-Url: https://codereview.chromium.org/2778513002 Cr-Commit-Position: refs/heads/master@{#460023} Committed: https://chromium.googlesource.com/chromium/src/+/4e4edb9d083a96781c37b447cf47e4efd7ca8eb7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix nits in histograms.xml #

Total comments: 14

Patch Set 3 : Update jumplist links anyway #

Total comments: 6

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -36 lines) Patch
M chrome/browser/win/jumplist.cc View 1 2 3 2 chunks +25 lines, -23 lines 0 comments Download
M chrome/browser/win/jumplist_file_util.h View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/win/jumplist_file_util.cc View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/win/jumplist_file_util_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 chunks +15 lines, -4 lines 0 comments Download

Messages

Total messages: 59 (50 generated)
chengx
This is a small follow up improvement to crrev.com/2752063002 just landed. PTAL~
3 years, 9 months ago (2017-03-24 21:36:22 UTC) #11
Ilya Sherman
Metrics LGTM % nits: https://codereview.chromium.org/2778513002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2778513002/diff/1/tools/metrics/histograms/histograms.xml#newcode80423 tools/metrics/histograms/histograms.xml:80423: + This metric records the ...
3 years, 9 months ago (2017-03-24 22:06:21 UTC) #12
grt (UTC plus 2)
https://codereview.chromium.org/2778513002/diff/20001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2778513002/diff/20001/chrome/browser/win/jumplist.cc#newcode267 chrome/browser/win/jumplist.cc:267: if (base::DirectoryExists(icon_dir)) { nit: omit braces for single-line conditional ...
3 years, 9 months ago (2017-03-27 08:03:39 UTC) #33
chengx
All the feedback comments are addressed in the new patch set. PTAL, thanks! https://codereview.chromium.org/2778513002/diff/20001/chrome/browser/win/jumplist.cc File ...
3 years, 9 months ago (2017-03-27 18:32:41 UTC) #44
grt (UTC plus 2)
https://codereview.chromium.org/2778513002/diff/20001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2778513002/diff/20001/chrome/browser/win/jumplist.cc#newcode288 chrome/browser/win/jumplist.cc:288: } On 2017/03/27 18:32:41, chengx wrote: > On 2017/03/27 ...
3 years, 9 months ago (2017-03-27 19:18:48 UTC) #45
chengx
PTAL~ https://codereview.chromium.org/2778513002/diff/20001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2778513002/diff/20001/chrome/browser/win/jumplist.cc#newcode288 chrome/browser/win/jumplist.cc:288: } On 2017/03/27 19:18:47, grt (UTC plus 2) ...
3 years, 9 months ago (2017-03-27 20:26:08 UTC) #50
grt (UTC plus 2)
lgtm
3 years, 9 months ago (2017-03-28 05:16:19 UTC) #53
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/2778513002/80001
3 years, 9 months ago (2017-03-28 05:52:21 UTC) #56
commit-bot: I haz the power
3 years, 9 months ago (2017-03-28 05:57:37 UTC) #59
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/4e4edb9d083a96781c37b447cf47...

Powered by Google App Engine
This is Rietveld 408576698