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

Issue 2639873002: Handle correctly "ShouldWait" result of mojo::Wait() in WebDataConsumerHandleImpl. (Closed)

Created:
3 years, 11 months ago by horo
Modified:
3 years, 11 months ago
Reviewers:
kinuko, yhirano
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle correctly "ShouldWait" result of mojo::Wait() in WebDataConsumerHandleImpl. This patch https://codereview.chromium.org/2363963002 changed WebDataConsumerHandleImpl::ReaderImpl::read() to use mojo::Wait() when |size| is zero. But the patch didn't correctly handle MOJO_RESULT_DEADLINE_EXCEEDED result. This method reutrns "UnexpectedError" but it should return "ShouldWait". BUG=649558 Review-Url: https://codereview.chromium.org/2639873002 Cr-Commit-Position: refs/heads/master@{#444644} Committed: https://chromium.googlesource.com/chromium/src/+/b8ea98da1ed38f6508a0b0c9928bc747e20c1731

Patch Set 1 #

Total comments: 2

Patch Set 2 : add NOTREACHED() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -4 lines) Patch
M content/child/web_data_consumer_handle_impl.cc View 1 1 chunk +13 lines, -2 lines 0 comments Download
M content/child/web_data_consumer_handle_impl_unittest.cc View 3 chunks +9 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (21 generated)
horo
yhirano@ Could you please review this?
3 years, 11 months ago (2017-01-18 06:18:26 UTC) #2
yhirano
Thanks! https://codereview.chromium.org/2639873002/diff/1/content/child/web_data_consumer_handle_impl.cc File content/child/web_data_consumer_handle_impl.cc (right): https://codereview.chromium.org/2639873002/diff/1/content/child/web_data_consumer_handle_impl.cc#newcode74 content/child/web_data_consumer_handle_impl.cc:74: return UnexpectedError; NOTREACHED() according to https://cs.chromium.org/chromium/src/mojo/public/c/system/functions.h?q=MOJO_RESULT_DEADLINE_EXCEEDED&sq=package:chromium&dr=C&l=89 ?
3 years, 11 months ago (2017-01-18 08:34:21 UTC) #8
horo
Thank you https://codereview.chromium.org/2639873002/diff/1/content/child/web_data_consumer_handle_impl.cc File content/child/web_data_consumer_handle_impl.cc (right): https://codereview.chromium.org/2639873002/diff/1/content/child/web_data_consumer_handle_impl.cc#newcode74 content/child/web_data_consumer_handle_impl.cc:74: return UnexpectedError; On 2017/01/18 08:34:21, yhirano wrote: ...
3 years, 11 months ago (2017-01-18 09:37:08 UTC) #9
yhirano
lgtm
3 years, 11 months ago (2017-01-19 02:15:46 UTC) #21
horo
kinuko@ Could you please review this?
3 years, 11 months ago (2017-01-19 02:25:37 UTC) #23
kinuko
lgtm
3 years, 11 months ago (2017-01-19 04:33:58 UTC) #24
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/2639873002/20001
3 years, 11 months ago (2017-01-19 04:40:22 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 04:44:57 UTC) #29
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b8ea98da1ed38f6508a0b0c9928b...

Powered by Google App Engine
This is Rietveld 408576698