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

Issue 1982883003: Handle unexpected MojoWait() result in MojoAudioDecoderService (Closed)

Created:
4 years, 7 months ago by Tima Vaisburd
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle unexpected MojoWait() result in MojoAudioDecoderService Report an error to the client if MojoWait() failed to get to the readable state instead of crashing. BUG=610489 Committed: https://crrev.com/90b79c7d69f6b25d3a8c44875cfe6331c6da320a Cr-Commit-Position: refs/heads/master@{#394941}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Addressed comments, fixed the writer part. #

Patch Set 3 : Added size check in the sender #

Total comments: 4

Patch Set 4 : Addressed comments #

Patch Set 5 : Rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -22 lines) Patch
M media/mojo/services/mojo_audio_decoder.cc View 1 2 3 3 chunks +17 lines, -6 lines 0 comments Download
M media/mojo/services/mojo_audio_decoder_service.cc View 1 2 3 1 chunk +16 lines, -16 lines 0 comments Download

Messages

Total messages: 27 (5 generated)
Tima Vaisburd
PTAL.
4 years, 7 months ago (2016-05-17 21:39:13 UTC) #2
sandersd (OOO until July 31)
On 2016/05/17 21:39:13, Tima Vaisburd wrote: > PTAL. FYI, I am doing similar work: https://codereview.chromium.org/1899363002/diff/200001/media/mojo/services/mojo_audio_decoder_service.cc ...
4 years, 7 months ago (2016-05-17 23:45:09 UTC) #3
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1982883003/diff/1/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1982883003/diff/1/media/mojo/services/mojo_audio_decoder_service.cc#newcode161 media/mojo/services/mojo_audio_decoder_service.cc:161: state.satisfied_signals & MOJO_HANDLE_SIGNAL_PEER_CLOSED) { It's possible for PEER_CLOSED to ...
4 years, 7 months ago (2016-05-17 23:54:53 UTC) #4
Tima Vaisburd
On 2016/05/17 23:45:09, sandersd wrote: > On 2016/05/17 21:39:13, Tima Vaisburd wrote: > > PTAL. ...
4 years, 7 months ago (2016-05-17 23:56:15 UTC) #5
Tima Vaisburd
4 years, 7 months ago (2016-05-17 23:56:32 UTC) #7
sandersd (OOO until July 31)
On 2016/05/17 23:56:15, Tima Vaisburd wrote: > On 2016/05/17 23:45:09, sandersd wrote: > > On ...
4 years, 7 months ago (2016-05-18 00:00:15 UTC) #8
sandersd (OOO until July 31)
On 2016/05/18 00:00:15, sandersd wrote: > On 2016/05/17 23:56:15, Tima Vaisburd wrote: > > On ...
4 years, 7 months ago (2016-05-18 00:00:56 UTC) #9
Tima Vaisburd
https://codereview.chromium.org/1982883003/diff/1/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1982883003/diff/1/media/mojo/services/mojo_audio_decoder_service.cc#newcode161 media/mojo/services/mojo_audio_decoder_service.cc:161: state.satisfied_signals & MOJO_HANDLE_SIGNAL_PEER_CLOSED) { On 2016/05/17 23:54:53, Ken Rockot ...
4 years, 7 months ago (2016-05-18 01:17:16 UTC) #10
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1982883003/diff/1/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1982883003/diff/1/media/mojo/services/mojo_audio_decoder_service.cc#newcode177 media/mojo/services/mojo_audio_decoder_service.cc:177: CHECK_EQ(bytes_to_read, bytes_read); On 2016/05/18 at 01:17:16, Tima Vaisburd wrote: ...
4 years, 7 months ago (2016-05-18 03:10:47 UTC) #11
Tima Vaisburd
On 2016/05/18 03:10:47, Ken Rockot wrote: > https://codereview.chromium.org/1982883003/diff/1/media/mojo/services/mojo_audio_decoder_service.cc > File media/mojo/services/mojo_audio_decoder_service.cc (right): > > https://codereview.chromium.org/1982883003/diff/1/media/mojo/services/mojo_audio_decoder_service.cc#newcode177 ...
4 years, 7 months ago (2016-05-18 17:55:42 UTC) #12
Ken Rockot(use gerrit already)
On 2016/05/18 at 17:55:42, timav wrote: > On 2016/05/18 03:10:47, Ken Rockot wrote: > > ...
4 years, 7 months ago (2016-05-18 18:21:16 UTC) #13
Ken Rockot(use gerrit already)
On 2016/05/18 at 18:21:16, Ken Rockot wrote: > On 2016/05/18 at 17:55:42, timav wrote: > ...
4 years, 7 months ago (2016-05-18 18:22:09 UTC) #14
Tima Vaisburd
On 2016/05/18 18:22:09, Ken Rockot wrote: > On 2016/05/18 at 18:21:16, Ken Rockot wrote: > ...
4 years, 7 months ago (2016-05-18 18:26:33 UTC) #15
Ken Rockot(use gerrit already)
Nope, lgtm - thanks!
4 years, 7 months ago (2016-05-18 19:12:46 UTC) #16
xhwang
lgtm % nit https://codereview.chromium.org/1982883003/diff/40001/media/mojo/services/mojo_audio_decoder.cc File media/mojo/services/mojo_audio_decoder.cc (right): https://codereview.chromium.org/1982883003/diff/40001/media/mojo/services/mojo_audio_decoder.cc#newcode237 media/mojo/services/mojo_audio_decoder.cc:237: return nullptr; Can you put a ...
4 years, 7 months ago (2016-05-19 18:59:59 UTC) #17
sandersd (OOO until July 31)
https://codereview.chromium.org/1982883003/diff/40001/media/mojo/services/mojo_audio_decoder_service.cc File media/mojo/services/mojo_audio_decoder_service.cc (right): https://codereview.chromium.org/1982883003/diff/40001/media/mojo/services/mojo_audio_decoder_service.cc#newcode166 media/mojo/services/mojo_audio_decoder_service.cc:166: uint32_t data_size = base::checked_cast<uint32_t>(media_buffer->data_size()); This should not be a ...
4 years, 7 months ago (2016-05-19 20:22:59 UTC) #18
Tima Vaisburd
https://codereview.chromium.org/1982883003/diff/40001/media/mojo/services/mojo_audio_decoder.cc File media/mojo/services/mojo_audio_decoder.cc (right): https://codereview.chromium.org/1982883003/diff/40001/media/mojo/services/mojo_audio_decoder.cc#newcode237 media/mojo/services/mojo_audio_decoder.cc:237: return nullptr; On 2016/05/19 18:59:59, xhwang wrote: > Can ...
4 years, 7 months ago (2016-05-19 22:00:57 UTC) #19
sandersd (OOO until July 31)
lgtm
4 years, 7 months ago (2016-05-19 23:22:58 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982883003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982883003/80001
4 years, 7 months ago (2016-05-19 23:26:57 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-20 01:00:20 UTC) #24
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/90b79c7d69f6b25d3a8c44875cfe6331c6da320a Cr-Commit-Position: refs/heads/master@{#394941}
4 years, 7 months ago (2016-05-20 01:03:26 UTC) #26
Will Harris
4 years, 4 months ago (2016-07-28 21:41:41 UTC) #27
Message was sent while issue was closed.
I have asked a question on issue 610489 about this CL.

Powered by Google App Engine
This is Rietveld 408576698