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

Issue 2567383002: Add FLAG_CAN_DELETE_ON_CLOSE and DeleteOnClose for use on Windows. (Closed)

Created:
4 years ago by grt (UTC plus 2)
Modified:
3 years, 11 months ago
Reviewers:
Nico
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add FLAG_CAN_DELETE_ON_CLOSE and DeleteOnClose for use on Windows. Files opened with FLAG_CAN_DELETE_ON_CLOSE can be marked for delete-on-close. Due to Windows' limitations, files opened with FLAG_DELETE_ON_CLOSE cannot have this state cleared. Review-Url: https://codereview.chromium.org/2567383002 Cr-Commit-Position: refs/heads/master@{#443686} Committed: https://chromium.googlesource.com/chromium/src/+/37dd92324bb996ba0c96e27f1e54f8d0f511294c

Patch Set 1 #

Total comments: 6

Patch Set 2 : thakis comments #

Total comments: 4

Patch Set 3 : better documentation, more tests #

Patch Set 4 : also test that mapping a file blocks DeleteOnClose #

Patch Set 5 : clang compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -16 lines) Patch
M base/files/file.h View 1 2 2 chunks +49 lines, -16 lines 0 comments Download
M base/files/file_unittest.cc View 1 2 3 4 2 chunks +155 lines, -0 lines 0 comments Download
M base/files/file_win.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
grt (UTC plus 2)
PTAL. I will use this in the other related CLs. Thanks.
4 years ago (2016-12-13 12:34:11 UTC) #4
Nico
I guess I'm reading these in the wrong order. https://codereview.chromium.org/2567383002/diff/1/base/files/file.h File base/files/file.h (right): https://codereview.chromium.org/2567383002/diff/1/base/files/file.h#newcode88 base/files/file.h:88: ...
3 years, 11 months ago (2017-01-10 18:04:16 UTC) #7
grt (UTC plus 2)
Thanks. https://codereview.chromium.org/2567383002/diff/1/base/files/file.h File base/files/file.h (right): https://codereview.chromium.org/2567383002/diff/1/base/files/file.h#newcode88 base/files/file.h:88: FLAG_DELETE = 1 << 20, // Used on ...
3 years, 11 months ago (2017-01-11 13:52:17 UTC) #10
Nico
Thanks! https://codereview.chromium.org/2567383002/diff/20001/base/files/file.h File base/files/file.h (right): https://codereview.chromium.org/2567383002/diff/20001/base/files/file.h#newcode89 base/files/file.h:89: // via DeleteOnClose() (Windows only). It now describe ...
3 years, 11 months ago (2017-01-11 15:47:18 UTC) #11
grt (UTC plus 2)
Now with better documentation and more tests! PTAL. https://codereview.chromium.org/2567383002/diff/20001/base/files/file.h File base/files/file.h (right): https://codereview.chromium.org/2567383002/diff/20001/base/files/file.h#newcode89 base/files/file.h:89: // ...
3 years, 11 months ago (2017-01-12 13:58:20 UTC) #17
Nico
lgtm++
3 years, 11 months ago (2017-01-12 17:17:36 UTC) #20
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/2567383002/60001
3 years, 11 months ago (2017-01-13 15:47:51 UTC) #23
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/2567383002/80001
3 years, 11 months ago (2017-01-13 17:25:05 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 21:53:22 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/37dd92324bb996ba0c96e27f1e54...

Powered by Google App Engine
This is Rietveld 408576698