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

Issue 2678813003: Disable fd/handle sharing in base::ReadFileToString. (Closed)

Created:
3 years, 10 months ago by grt (UTC plus 2)
Modified:
3 years, 10 months ago
Reviewers:
gab
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable fd/handle sharing in base::ReadFileToString. This CL adds the macro "FONE" to disable fd/handle sharing when opening files via base::OpenFile/fopen, and adds one use of it in ReadFileToString where it seems clear that such sharing is never desirable. BUG=671990, 688362 R=gab@chromium.org

Patch Set 1 #

Total comments: 10

Patch Set 2 : comment tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M base/files/file_util.h View 1 2 chunks +19 lines, -1 line 0 comments Download
M base/files/file_util.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (9 generated)
grt (UTC plus 2)
PTAL
3 years, 10 months ago (2017-02-06 13:22:37 UTC) #2
gab
Meta-comment: This default behavior is surprising to me. Would be great to require an explicit ...
3 years, 10 months ago (2017-02-06 21:13:19 UTC) #6
grt (UTC plus 2)
Since this is causing problems on the bots, WDYT of landing this for now while ...
3 years, 10 months ago (2017-02-06 21:51:21 UTC) #9
gab
On 2017/02/06 21:51:21, grt (UTC plus 1) wrote: > Since this is causing problems on ...
3 years, 10 months ago (2017-02-07 19:42:59 UTC) #12
grt (UTC plus 2)
On 2017/02/07 19:42:59, gab wrote: > On 2017/02/06 21:51:21, grt (UTC plus 1) wrote: > ...
3 years, 10 months ago (2017-02-07 20:35:55 UTC) #13
grt (UTC plus 2)
https://codereview.chromium.org/2678813003/diff/1/base/files/file_util.h File base/files/file_util.h (right): https://codereview.chromium.org/2678813003/diff/1/base/files/file_util.h#newcode43 base/files/file_util.h:43: // across platforms. Define the macro FONE (i.e., "fopen ...
3 years, 10 months ago (2017-02-07 20:36:06 UTC) #14
gab
On 2017/02/07 20:35:55, grt (UTC plus 1) wrote: > On 2017/02/07 19:42:59, gab wrote: > ...
3 years, 10 months ago (2017-02-07 20:48:50 UTC) #15
grt (UTC plus 2)
3 years, 10 months ago (2017-02-09 13:02:48 UTC) #16
Closing this issue in favor of https://codereview.chromium.org/2687713003/.

Powered by Google App Engine
This is Rietveld 408576698