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

Issue 201083002: Base: Make base::File use ScopedFD on POSIX. (Closed)

Created:
6 years, 9 months ago by rvargas (doing something else)
Modified:
6 years, 9 months ago
Reviewers:
brettw
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Base: Make base::File use ScopedFD on POSIX. Now that ScopedFD lives outside of file_util, File can use it to remove manual lifetime management. This also standarizes the behavior on Close failures for all platforms. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257562

Patch Set 1 #

Total comments: 4

Patch Set 2 : DCHECK fd >= -1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -29 lines) Patch
M base/files/file.h View 3 chunks +3 lines, -2 lines 0 comments Download
M base/files/file.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M base/files/file_posix.cc View 13 chunks +28 lines, -26 lines 0 comments Download
M base/files/file_win.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rvargas (doing something else)
PTAL https://codereview.chromium.org/201083002/diff/1/base/files/file_posix.cc File base/files/file_posix.cc (right): https://codereview.chromium.org/201083002/diff/1/base/files/file_posix.cc#newcode210 base/files/file_posix.cc:210: return file_.is_valid(); This is interesting, as the current ...
6 years, 9 months ago (2014-03-17 18:38:48 UTC) #1
rvargas (doing something else)
https://codereview.chromium.org/201083002/diff/1/base/files/file_posix.cc File base/files/file_posix.cc (right): https://codereview.chromium.org/201083002/diff/1/base/files/file_posix.cc#newcode210 base/files/file_posix.cc:210: return file_.is_valid(); On 2014/03/17 18:38:49, rvargas wrote: > invalid, ...
6 years, 9 months ago (2014-03-17 18:40:46 UTC) #2
brettw
LGTM. My patch was reverted and just relanded in case you notice weird sync problems. ...
6 years, 9 months ago (2014-03-17 19:38:50 UTC) #3
rvargas (doing something else)
Thanks! https://codereview.chromium.org/201083002/diff/1/base/files/file_posix.cc File base/files/file_posix.cc (right): https://codereview.chromium.org/201083002/diff/1/base/files/file_posix.cc#newcode210 base/files/file_posix.cc:210: return file_.is_valid(); On 2014/03/17 19:38:50, brettw wrote: > ...
6 years, 9 months ago (2014-03-17 21:39:27 UTC) #4
rvargas (doing something else)
The CQ bit was checked by rvargas@chromium.org
6 years, 9 months ago (2014-03-17 21:53:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/201083002/40001
6 years, 9 months ago (2014-03-17 22:03:15 UTC) #6
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 00:47:55 UTC) #7
Message was sent while issue was closed.
Change committed as 257562

Powered by Google App Engine
This is Rietveld 408576698