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

Issue 26513005: Report errors from ChromiumEnv::GetChildren in Posix. (Closed)

Created:
7 years, 2 months ago by dgrogan
Modified:
7 years, 2 months ago
Reviewers:
Nico, Ilya Sherman, jsbell
CC:
chromium-reviews
Visibility:
Public.

Description

Report errors from ChromiumEnv::GetChildren in Posix. Win forthcoming. BUG=308101 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229622

Patch Set 1 #

Patch Set 2 : reupload #

Patch Set 3 : add RecordOSError #

Patch Set 4 : change to pfe #

Patch Set 5 : added todo #

Patch Set 6 : Split functions out from GetChildren #

Patch Set 7 : return right type on windows #

Patch Set 8 : fix compile on windows #

Total comments: 17

Patch Set 9 : respond to comments #

Patch Set 10 : add BASE_EXPORT to ErrnoToPlatformFileError #

Total comments: 2

Patch Set 11 : add comment to PlatformFileError #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -11 lines) Patch
M base/platform_file.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -1 line 1 comment Download
M third_party/leveldatabase/env_chromium.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 1 2 3 4 5 6 7 8 3 chunks +56 lines, -10 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
dgrogan
Josh, could you review this?
7 years, 2 months ago (2013-10-16 20:17:21 UTC) #1
jsbell
I don't like pulling more platform specific code into env. Could this be done by ...
7 years, 2 months ago (2013-10-16 20:45:52 UTC) #2
jsbell
> PlatformFileError GetDirectoryEntries(const FilePath& dir, std::vector<FilePath> And yeah, that would require string<->FilePath conversions in the ...
7 years, 2 months ago (2013-10-16 20:48:56 UTC) #3
dgrogan
I think this is ready for another look.
7 years, 2 months ago (2013-10-16 23:47:21 UTC) #4
jsbell
Overall LGTM with nits/suggestions https://codereview.chromium.org/26513005/diff/42001/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/26513005/diff/42001/third_party/leveldatabase/env_chromium.cc#newcode674 third_party/leveldatabase/env_chromium.cc:674: #if defined(OS_WIN) Anonymous namespace around ...
7 years, 2 months ago (2013-10-17 18:32:39 UTC) #5
dgrogan
https://codereview.chromium.org/26513005/diff/42001/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/26513005/diff/42001/third_party/leveldatabase/env_chromium.cc#newcode674 third_party/leveldatabase/env_chromium.cc:674: #if defined(OS_WIN) On 2013/10/17 18:32:39, jsbell wrote: > Anonymous ...
7 years, 2 months ago (2013-10-17 20:22:35 UTC) #6
dgrogan
isherman@, could you review this?
7 years, 2 months ago (2013-10-17 20:23:25 UTC) #7
jsbell
https://codereview.chromium.org/26513005/diff/42001/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/26513005/diff/42001/third_party/leveldatabase/env_chromium.cc#newcode692 third_party/leveldatabase/env_chromium.cc:692: const std::string dir_string = dir_filepath.AsUTF8Unsafe(); On 2013/10/17 20:22:36, dgrogan ...
7 years, 2 months ago (2013-10-17 20:47:42 UTC) #8
Ilya Sherman
histograms.xml lgtm
7 years, 2 months ago (2013-10-17 21:36:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/26513005/47001
7 years, 2 months ago (2013-10-17 23:19:47 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-18 00:46:50 UTC) #11
dgrogan
thakis@, could you review as an owner of base?
7 years, 2 months ago (2013-10-18 01:35:11 UTC) #12
Nico
https://codereview.chromium.org/26513005/diff/113001/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/26513005/diff/113001/third_party/leveldatabase/env_chromium.cc#newcode720 third_party/leveldatabase/env_chromium.cc:720: RecordOSError(kGetChildren, error); Does this mean that PlatformFileError needs to ...
7 years, 2 months ago (2013-10-18 02:28:29 UTC) #13
dgrogan
https://codereview.chromium.org/26513005/diff/113001/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/26513005/diff/113001/third_party/leveldatabase/env_chromium.cc#newcode720 third_party/leveldatabase/env_chromium.cc:720: RecordOSError(kGetChildren, error); On 2013/10/18 02:28:30, Nico wrote: > Does ...
7 years, 2 months ago (2013-10-18 20:52:58 UTC) #14
Nico
On 2013/10/18 20:52:58, dgrogan wrote: > https://codereview.chromium.org/26513005/diff/113001/third_party/leveldatabase/env_chromium.cc > File third_party/leveldatabase/env_chromium.cc (right): > > https://codereview.chromium.org/26513005/diff/113001/third_party/leveldatabase/env_chromium.cc#newcode720 > ...
7 years, 2 months ago (2013-10-18 20:58:05 UTC) #15
dgrogan
On 2013/10/18 20:58:05, Nico wrote: > On 2013/10/18 20:52:58, dgrogan wrote: > > > https://codereview.chromium.org/26513005/diff/113001/third_party/leveldatabase/env_chromium.cc ...
7 years, 2 months ago (2013-10-18 21:33:42 UTC) #16
Nico
On Fri, Oct 18, 2013 at 2:33 PM, <dgrogan@chromium.org> wrote: > On 2013/10/18 20:58:05, Nico ...
7 years, 2 months ago (2013-10-18 21:35:56 UTC) #17
dgrogan
https://codereview.chromium.org/26513005/diff/215001/base/platform_file.h File base/platform_file.h (right): https://codereview.chromium.org/26513005/diff/215001/base/platform_file.h#newcode60 base/platform_file.h:60: // have been moved to a different enum. thakis@, ...
7 years, 2 months ago (2013-10-18 21:54:09 UTC) #18
Nico
base/ lgtm
7 years, 2 months ago (2013-10-18 22:39:57 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/26513005/215001
7 years, 2 months ago (2013-10-18 22:53:07 UTC) #20
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=90655
7 years, 2 months ago (2013-10-19 09:24:06 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/26513005/215001
7 years, 2 months ago (2013-10-19 17:04:40 UTC) #22
commit-bot: I haz the power
7 years, 2 months ago (2013-10-19 22:13:48 UTC) #23
Message was sent while issue was closed.
Change committed as 229622

Powered by Google App Engine
This is Rietveld 408576698