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

Issue 2356693002: Remove BytesConsumer::read (Closed)

Created:
4 years, 3 months ago by yhirano
Modified:
4 years, 3 months ago
Reviewers:
hiroshige
CC:
chromium-reviews, blink-reviews, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove BytesConsumer::read BytesConsumer::read is rarely used, and it can be implemented on top of two-phase read functions. Removing it allows endRead to return Result::Done, which simplifies BytesConsumer implementations. This CL also fixes a bug in BytesConsumerTestUtil. BUG=610195 Committed: https://crrev.com/dc89b6cd125269af5033d6e6a158c12542c0785d Cr-Commit-Position: refs/heads/master@{#419983}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 1

Messages

Total messages: 26 (19 generated)
yhirano
https://codereview.chromium.org/2356693002/diff/40001/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp File third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp (right): https://codereview.chromium.org/2356693002/diff/40001/third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp#newcode169 third_party/WebKit/Source/modules/fetch/BytesConsumerTestUtil.cpp:169: size_t read = std::min(static_cast<size_t>(3), available); This is a separate ...
4 years, 3 months ago (2016-09-20 08:44:42 UTC) #12
hiroshige
LGTM. Mentioning - the small bug fix and - that removing read() will enable https://codereview.chromium.org/2351643004/ ...
4 years, 3 months ago (2016-09-20 09:00:23 UTC) #15
yhirano
Updated the description.
4 years, 3 months ago (2016-09-20 12:50:44 UTC) #19
hiroshige
On 2016/09/20 12:50:44, yhirano (slow) wrote: > Updated the description. lgtm again.
4 years, 3 months ago (2016-09-21 05:01:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2356693002/40001
4 years, 3 months ago (2016-09-21 05:37:33 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-21 05:44:44 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 05:48:02 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/dc89b6cd125269af5033d6e6a158c12542c0785d
Cr-Commit-Position: refs/heads/master@{#419983}

Powered by Google App Engine
This is Rietveld 408576698