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

Issue 1158253002: mandoline filesystem: Rewrite using base::File. (Closed)

Created:
5 years, 6 months ago by Elliot Glaysher
Modified:
5 years, 6 months ago
Reviewers:
jam, yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mandoline filesystem: Rewrite using base::File. The previous incomplete implementation of the file system targeted posix semantics. While I'd still like to see a service that offered posix semantics added to the filesystem application, for short term cross-platform bring up, rewrite the implementation to targeting base::File so Windows works. BUG=490237 Committed: https://crrev.com/6c6729f63ec4fc5063009adb703c2563f08d0464 Cr-Commit-Position: refs/heads/master@{#331994}

Patch Set 1 #

Patch Set 2 : Rebase to ToT #

Patch Set 3 : Revert windows; will fix that separatly. #

Patch Set 4 : More cleanup #

Total comments: 2

Patch Set 5 : Get data from FileEnumerator::FileInfo #

Patch Set 6 : Get the error from the right object. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+493 lines, -1103 lines) Patch
M components/filesystem/BUILD.gn View 2 chunks +1 line, -5 lines 0 comments Download
M components/filesystem/directory_impl.h View 3 chunks +3 lines, -6 lines 0 comments Download
M components/filesystem/directory_impl.cc View 1 2 3 4 1 chunk +67 lines, -206 lines 0 comments Download
M components/filesystem/directory_impl_unittest.cc View 1 6 chunks +27 lines, -99 lines 0 comments Download
M components/filesystem/file_impl.h View 3 chunks +10 lines, -19 lines 0 comments Download
M components/filesystem/file_impl.cc View 1 2 3 4 5 11 chunks +89 lines, -168 lines 0 comments Download
M components/filesystem/file_impl_unittest.cc View 1 40 chunks +93 lines, -157 lines 0 comments Download
M components/filesystem/file_system_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/filesystem/file_system_impl.cc View 1 2 3 2 chunks +17 lines, -56 lines 0 comments Download
M components/filesystem/files_test_base.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
D components/filesystem/futimens.h View 1 chunk +0 lines, -26 lines 0 comments Download
D components/filesystem/futimens_android.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M components/filesystem/public/interfaces/directory.mojom View 2 chunks +0 lines, -11 lines 0 comments Download
M components/filesystem/public/interfaces/file.mojom View 2 chunks +1 line, -29 lines 0 comments Download
M components/filesystem/public/interfaces/types.mojom View 4 chunks +50 lines, -55 lines 0 comments Download
D components/filesystem/shared_impl.h View 1 chunk +0 lines, -31 lines 0 comments Download
D components/filesystem/shared_impl.cc View 1 chunk +0 lines, -79 lines 0 comments Download
M components/filesystem/util.h View 1 2 3 2 chunks +10 lines, -21 lines 0 comments Download
M components/filesystem/util.cc View 1 chunk +121 lines, -119 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Elliot Glaysher
This punts on the windows conversion because I'm getting weird compile failures inside the autogenerated ...
5 years, 6 months ago (2015-05-27 20:45:50 UTC) #2
jam
https://codereview.chromium.org/1158253002/diff/60001/components/filesystem/directory_impl.cc File components/filesystem/directory_impl.cc (right): https://codereview.chromium.org/1158253002/diff/60001/components/filesystem/directory_impl.cc#newcode34 components/filesystem/directory_impl.cc:34: for (base::FilePath name = directory_enumerator.Next(); !name.empty(); why enumerate twice ...
5 years, 6 months ago (2015-05-28 06:40:34 UTC) #3
yzshen1
> This punts on the windows conversion because I'm getting weird compile failures > inside ...
5 years, 6 months ago (2015-05-28 06:45:14 UTC) #4
Elliot Glaysher
ptal https://codereview.chromium.org/1158253002/diff/60001/components/filesystem/directory_impl.cc File components/filesystem/directory_impl.cc (right): https://codereview.chromium.org/1158253002/diff/60001/components/filesystem/directory_impl.cc#newcode34 components/filesystem/directory_impl.cc:34: for (base::FilePath name = directory_enumerator.Next(); !name.empty(); On 2015/05/28 ...
5 years, 6 months ago (2015-05-28 17:46:58 UTC) #5
Elliot Glaysher
ping jam
5 years, 6 months ago (2015-05-28 22:43:00 UTC) #6
jam
lgtm
5 years, 6 months ago (2015-05-29 15:15:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158253002/100001
5 years, 6 months ago (2015-05-29 17:00:45 UTC) #9
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 6 months ago (2015-05-29 17:05:51 UTC) #10
commit-bot: I haz the power
5 years, 6 months ago (2015-05-29 17:06:32 UTC) #11
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6c6729f63ec4fc5063009adb703c2563f08d0464
Cr-Commit-Position: refs/heads/master@{#331994}

Powered by Google App Engine
This is Rietveld 408576698