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

Issue 1714503003: Allow passing in strings of length zero to FileWrapper::Write without closing the file. (Closed)

Created:
4 years, 10 months ago by terelius
Modified:
4 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, henrika_webrtc, zhengzhonghou_agora.io, tterriberry_mozilla.com, fengyue_agora.io, peah-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Allow passing in strings of length zero to FileWrapper::Write without closing the file. BUG=webrtc:5253 Committed: https://crrev.com/6b1968ea70fc69da04aa49b0a5305cda51d66d38 Cr-Commit-Position: refs/heads/master@{#12132}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Don't close the file #

Patch Set 3 : Close the file upon error to be consistent with other functions #

Total comments: 2

Patch Set 4 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -6 lines) Patch
M webrtc/system_wrappers/source/file_impl.cc View 1 2 3 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
terelius
Please take a look.
4 years, 10 months ago (2016-02-19 14:43:21 UTC) #2
Henrik Grunell WebRTC
https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc File webrtc/system_wrappers/source/file_impl.cc (right): https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc#newcode246 webrtc/system_wrappers/source/file_impl.cc:246: size_in_bytes_ += num_bytes; Keep this inside the if block ...
4 years, 10 months ago (2016-02-19 15:04:39 UTC) #3
terelius
https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc File webrtc/system_wrappers/source/file_impl.cc (right): https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc#newcode247 webrtc/system_wrappers/source/file_impl.cc:247: if (num_bytes == length) { On 2016/02/19 15:04:38, Henrik ...
4 years, 10 months ago (2016-02-19 16:05:52 UTC) #4
Henrik Grunell WebRTC
On 2016/02/19 16:05:52, terelius wrote: > https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc > File webrtc/system_wrappers/source/file_impl.cc (right): > > https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc#newcode247 > ...
4 years, 10 months ago (2016-02-19 16:16:11 UTC) #5
terelius
https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc File webrtc/system_wrappers/source/file_impl.cc (right): https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc#newcode246 webrtc/system_wrappers/source/file_impl.cc:246: size_in_bytes_ += num_bytes; On 2016/02/19 15:04:38, Henrik Grunell (webrtc) ...
4 years, 10 months ago (2016-02-19 16:50:29 UTC) #6
Henrik Grunell WebRTC
lgtm https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc File webrtc/system_wrappers/source/file_impl.cc (right): https://codereview.webrtc.org/1714503003/diff/1/webrtc/system_wrappers/source/file_impl.cc#newcode251 webrtc/system_wrappers/source/file_impl.cc:251: CloseFileImpl(); On 2016/02/19 16:50:29, terelius wrote: > On ...
4 years, 10 months ago (2016-02-23 09:38:02 UTC) #7
terelius
I changed back so that Write still closes the file if a write error occurs. ...
4 years, 9 months ago (2016-03-24 10:16:08 UTC) #8
Henrik Grunell WebRTC
lgtm, nit is optional. https://codereview.webrtc.org/1714503003/diff/40001/webrtc/system_wrappers/source/file_impl.cc File webrtc/system_wrappers/source/file_impl.cc (left): https://codereview.webrtc.org/1714503003/diff/40001/webrtc/system_wrappers/source/file_impl.cc#oldcode244 webrtc/system_wrappers/source/file_impl.cc:244: Nit: I think this empty ...
4 years, 9 months ago (2016-03-24 10:34:11 UTC) #9
terelius
https://codereview.webrtc.org/1714503003/diff/40001/webrtc/system_wrappers/source/file_impl.cc File webrtc/system_wrappers/source/file_impl.cc (left): https://codereview.webrtc.org/1714503003/diff/40001/webrtc/system_wrappers/source/file_impl.cc#oldcode244 webrtc/system_wrappers/source/file_impl.cc:244: On 2016/03/24 10:34:11, Henrik Grunell (webrtc) wrote: > Nit: ...
4 years, 9 months ago (2016-03-24 10:38:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1714503003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1714503003/60001
4 years, 9 months ago (2016-03-24 10:38:47 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL) linux_baremetal on ...
4 years, 9 months ago (2016-03-24 12:39:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1714503003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1714503003/60001
4 years, 9 months ago (2016-03-24 16:22:01 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_baremetal on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 9 months ago (2016-03-24 18:22:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1714503003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1714503003/60001
4 years, 8 months ago (2016-03-29 07:40:08 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-03-29 08:40:05 UTC) #22
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 08:40:11 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6b1968ea70fc69da04aa49b0a5305cda51d66d38
Cr-Commit-Position: refs/heads/master@{#12132}

Powered by Google App Engine
This is Rietveld 408576698