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

Issue 2852763003: Delete JumpList temp file when failing to write the icon's content to it (Closed)

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

Description

Delete JumpList temp file when failing to write the icon's content to it Currently, an empty temp file is created before a JumpList icon's content is written to it. However, the temp file is not deleted right away if the content writing fails, which explains why there're empty icon temp files in the jumplist folder sometimes. This indicates we're leaking temp files and may cause performance issues. This CL fixes this issue by deleting the empty temp files right away when necessary. BUG=40407, 179576, 715902, 716601 Review-Url: https://codereview.chromium.org/2852763003 Cr-Commit-Position: refs/heads/master@{#468357} Committed: https://chromium.googlesource.com/chromium/src/+/ced3697c2cfa3e1d5814f8bbf9456aaf4a75543b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix comments. #

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

Messages

Total messages: 33 (28 generated)
chengx
Hi Greg, thanks for catching this bug. PTAL~
3 years, 7 months ago (2017-04-28 20:49:47 UTC) #14
grt (UTC plus 2)
lgtm with a nit https://codereview.chromium.org/2852763003/diff/20001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2852763003/diff/20001/chrome/browser/win/jumplist.cc#newcode120 chrome/browser/win/jumplist.cc:120: base::DeleteFile(path, false); nit: put the ...
3 years, 7 months ago (2017-05-01 08:47:33 UTC) #22
chengx
I've fixed the nit in the new patch set. Thanks! https://codereview.chromium.org/2852763003/diff/20001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2852763003/diff/20001/chrome/browser/win/jumplist.cc#newcode120 ...
3 years, 7 months ago (2017-05-01 18:05:47 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/2852763003/40001
3 years, 7 months ago (2017-05-01 18:08:16 UTC) #30
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 18:21:54 UTC) #33
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ced3697c2cfa3e1d5814f8bbf945...

Powered by Google App Engine
This is Rietveld 408576698