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

Issue 659303002: Fixed copying read-only directories (Closed)

Created:
6 years, 2 months ago by ripp
Modified:
6 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git/+/master
Project:
chromium
Visibility:
Public.

Description

Fixed copying read-only directories While directory copying, the original code creates top-level directory with the same permissions as source one. So if source directory is read-only, the newly created directory is also read-only, and neither files nor subdirectories can't be created in it R=rvargas@chromium.org TEST=Unit test was updated to check such a use case Committed: https://crrev.com/da4b0f2ba723c28734781887f759a969eea9191a Cr-Commit-Position: refs/heads/master@{#301332}

Patch Set 1 #

Total comments: 12

Patch Set 2 : SetFullAccess functional moved to SetReadOnly(..., false); comments and asserts changed according t… #

Total comments: 4

Patch Set 3 : Fixed indentation and removed redundant function #

Total comments: 4

Patch Set 4 : Cosmetic changes according to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -13 lines) Patch
M base/files/file_util_posix.cc View 1 chunk +3 lines, -1 line 0 comments Download
M base/files/file_util_unittest.cc View 1 2 3 3 chunks +33 lines, -12 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
ripp
6 years, 2 months ago (2014-10-17 12:41:53 UTC) #1
rvargas (doing something else)
Looks fine to me, but adding palmer to double check. https://codereview.chromium.org/659303002/diff/1/base/files/file_util_unittest.cc File base/files/file_util_unittest.cc (right): https://codereview.chromium.org/659303002/diff/1/base/files/file_util_unittest.cc#newcode1389 ...
6 years, 2 months ago (2014-10-23 01:12:12 UTC) #3
ripp
https://codereview.chromium.org/659303002/diff/1/base/files/file_util_unittest.cc File base/files/file_util_unittest.cc (right): https://codereview.chromium.org/659303002/diff/1/base/files/file_util_unittest.cc#newcode1389 base/files/file_util_unittest.cc:1389: // Files in the temporary directory should not be ...
6 years, 2 months ago (2014-10-23 07:04:52 UTC) #4
rvargas (doing something else)
lgtm after addressing the comments, but wait for palmer. https://codereview.chromium.org/659303002/diff/20001/base/files/file_util_unittest.cc File base/files/file_util_unittest.cc (right): https://codereview.chromium.org/659303002/diff/20001/base/files/file_util_unittest.cc#newcode1400 base/files/file_util_unittest.cc:1400: ...
6 years, 1 month ago (2014-10-23 19:15:34 UTC) #5
ripp
https://codereview.chromium.org/659303002/diff/20001/base/files/file_util_unittest.cc File base/files/file_util_unittest.cc (right): https://codereview.chromium.org/659303002/diff/20001/base/files/file_util_unittest.cc#newcode1400 base/files/file_util_unittest.cc:1400: (attrs & (FILE_ATTRIBUTE_ARCHIVE | FILE_ATTRIBUTE_DIRECTORY)); On 2014/10/23 19:15:34, rvargas ...
6 years, 1 month ago (2014-10-24 05:51:20 UTC) #6
palmer
LGTM with nits https://codereview.chromium.org/659303002/diff/40001/base/files/file_util_unittest.cc File base/files/file_util_unittest.cc (right): https://codereview.chromium.org/659303002/diff/40001/base/files/file_util_unittest.cc#newcode1394 base/files/file_util_unittest.cc:1394: // TODO(ripp@yandex-team.ru): this seems out of ...
6 years, 1 month ago (2014-10-24 18:26:46 UTC) #7
ripp
https://codereview.chromium.org/659303002/diff/40001/base/files/file_util_unittest.cc File base/files/file_util_unittest.cc (right): https://codereview.chromium.org/659303002/diff/40001/base/files/file_util_unittest.cc#newcode1394 base/files/file_util_unittest.cc:1394: // TODO(ripp@yandex-team.ru): this seems out of place here. If ...
6 years, 1 month ago (2014-10-27 08:57:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659303002/60001
6 years, 1 month ago (2014-10-27 08:58:25 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-10-27 10:00:00 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 10:00:42 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/da4b0f2ba723c28734781887f759a969eea9191a
Cr-Commit-Position: refs/heads/master@{#301332}

Powered by Google App Engine
This is Rietveld 408576698