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

Issue 818433002: Add LoggingOpenFileFor{Read|Write} (Closed)

Created:
6 years ago by scottmg
Modified:
6 years ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@scoped-handle-land
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

Add LoggingOpenFileFor{Read|Write} I started (https://codereview.chromium.org/812403002/) emulating oflag values on Windows in FileWriter, but it seemed awkward. On the assumption that we're only likely to need "read a file" and "write a file" this seemed simpler, and sufficient (but I don't know if that's necessarily true). Users of open are not yet switched. R=mark@chromium.org BUG=crashpad:1 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/4034d30023dcc3c1151edcad32f1e840c0314c15

Patch Set 1 #

Patch Set 2 : posix #

Total comments: 9

Patch Set 3 : mode #

Total comments: 19

Patch Set 4 : . #

Patch Set 5 : posix impl #

Total comments: 7

Patch Set 6 : fixes #

Patch Set 7 : win impl #

Total comments: 7

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -4 lines) Patch
M util/file/file_io.h View 1 2 3 4 5 6 7 3 chunks +49 lines, -4 lines 0 comments Download
M util/file/file_io_posix.cc View 1 2 3 4 5 6 7 2 chunks +24 lines, -0 lines 0 comments Download
M util/file/file_io_win.cc View 1 2 3 4 5 6 7 2 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
scottmg
6 years ago (2014-12-18 18:13:11 UTC) #4
Mark Mentovai
Short story: we probably don’t need anything as in-depth as what you started in https://codereview.chromium.org/812403002, ...
6 years ago (2014-12-18 19:04:27 UTC) #5
scottmg
https://codereview.chromium.org/818433002/diff/80001/util/file/file_io.h File util/file/file_io.h (right): https://codereview.chromium.org/818433002/diff/80001/util/file/file_io.h#newcode18 util/file/file_io.h:18: #include <inttypes.h> On 2014/12/18 19:04:27, Mark Mentovai wrote: > ...
6 years ago (2014-12-18 19:59:21 UTC) #8
Mark Mentovai
I like the approach. The big question here is that I don’t see the difference ...
6 years ago (2014-12-18 20:25:00 UTC) #9
Mark Mentovai
I like the approach. The big question here is that I don’t see the difference ...
6 years ago (2014-12-18 20:25:01 UTC) #10
Mark Mentovai
https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h File util/file/file_io.h (right): https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h#newcode54 util/file/file_io.h:54: kTruncate, Oh, also, these names should be something like ...
6 years ago (2014-12-18 20:27:34 UTC) #11
scottmg
https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h File util/file/file_io.h (right): https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h#newcode39 util/file/file_io.h:39: //! \brief Determines the mode that LoggingOpenFileForWrite uses. On ...
6 years ago (2014-12-18 21:18:54 UTC) #12
scottmg
https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h File util/file/file_io.h (right): https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h#newcode150 util/file/file_io.h:150: //! \a write_mode determines the style (clobber, truncate, etc.) ...
6 years ago (2014-12-18 21:36:45 UTC) #13
scottmg
On 2014/12/18 21:36:45, scottmg wrote: > https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h > File util/file/file_io.h (right): > > https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h#newcode150 > ...
6 years ago (2014-12-18 21:41:32 UTC) #14
Mark Mentovai
https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h File util/file/file_io.h (right): https://codereview.chromium.org/818433002/diff/140001/util/file/file_io.h#newcode46 util/file/file_io.h:46: //! overwritten. scottmg wrote: > I meant for kTruncate ...
6 years ago (2014-12-18 21:52:32 UTC) #15
scottmg
https://codereview.chromium.org/818433002/diff/180001/util/file/file_io.h File util/file/file_io.h (right): https://codereview.chromium.org/818433002/diff/180001/util/file/file_io.h#newcode42 util/file/file_io.h:42: kAppend, On 2014/12/18 21:52:32, Mark Mentovai wrote: > kAppend ...
6 years ago (2014-12-18 22:12:44 UTC) #16
Mark Mentovai
LGTM! and I was hoping we’d get to COM today ;) https://codereview.chromium.org/818433002/diff/220001/util/file/file_io.h File util/file/file_io.h (right): ...
6 years ago (2014-12-18 22:20:59 UTC) #17
scottmg
Thanks! (stepping out for a bit, will land when I'm back to watch it) https://codereview.chromium.org/818433002/diff/220001/util/file/file_io.h ...
6 years ago (2014-12-18 22:47:15 UTC) #18
scottmg
6 years ago (2014-12-19 00:29:38 UTC) #19
Message was sent while issue was closed.
Committed patchset #8 (id:240001) manually as
4034d30023dcc3c1151edcad32f1e840c0314c15 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698