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

Issue 2530443002: Fix OnChannelError() in StreamTextureHost (Closed)

Created:
4 years ago by tguilbert
Modified:
4 years ago
Reviewers:
watk, jbauman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, feature-media-reviews_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mlamouri+watch-blink_chromium.org, eric.carlson_apple.com, haraken, eme-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, blink-reviews, piman+watch_chromium.org, Srirama, mlamouri+watch-media_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix OnChannelError() in StreamTextureHost StreamTextureHost is always created with a valid |route_id|, and it also does not handle OnChannelError(). This change removes the useless |route_id| checks, sets |channel_| to nullptr when OnChannelError() is called, and adds appropriate |channel_| null checks. This change also removes raw pointers from StreamTextureProxy, to fix style conformance and StreamTextureHost ownership clearer. BUG=667162 Committed: https://crrev.com/3717d9ae21d551d001edce8d6c269149676541a2 Cr-Commit-Position: refs/heads/master@{#434715}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -21 lines) Patch
M content/renderer/gpu/stream_texture_host_android.cc View 1 4 chunks +10 lines, -8 lines 0 comments Download
M content/renderer/media/android/stream_texture_factory.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/media/android/stream_texture_factory.cc View 3 chunks +7 lines, -5 lines 0 comments Download
M content/renderer/media/android/stream_texture_wrapper_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
tguilbert
I don't think this will fix the bug completely (there seem to be two crashes ...
4 years ago (2016-11-23 01:28:13 UTC) #4
watk
nice, lgtm https://codereview.chromium.org/2530443002/diff/20001/content/renderer/gpu/stream_texture_host_android.cc File content/renderer/gpu/stream_texture_host_android.cc (right): https://codereview.chromium.org/2530443002/diff/20001/content/renderer/gpu/stream_texture_host_android.cc#newcode18 content/renderer/gpu/stream_texture_host_android.cc:18: listener_(NULL), nit: can you make this nullptr ...
4 years ago (2016-11-23 20:26:07 UTC) #5
tguilbert
jbauman, can you OWNERS review content/renderer/gpu/stream_texture_host_android.cc? Thank you! Thomas https://codereview.chromium.org/2530443002/diff/20001/content/renderer/gpu/stream_texture_host_android.cc File content/renderer/gpu/stream_texture_host_android.cc (right): https://codereview.chromium.org/2530443002/diff/20001/content/renderer/gpu/stream_texture_host_android.cc#newcode18 content/renderer/gpu/stream_texture_host_android.cc:18: ...
4 years ago (2016-11-23 20:43:13 UTC) #7
jbauman
lgtm
4 years ago (2016-11-23 22:50:17 UTC) #8
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/2530443002/40001
4 years ago (2016-11-23 23:46:24 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on ...
4 years ago (2016-11-24 01:49:18 UTC) #13
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/2530443002/40001
4 years ago (2016-11-28 19:48:12 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years ago (2016-11-28 20:53:38 UTC) #18
commit-bot: I haz the power
4 years ago (2016-11-28 20:57:13 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3717d9ae21d551d001edce8d6c269149676541a2
Cr-Commit-Position: refs/heads/master@{#434715}

Powered by Google App Engine
This is Rietveld 408576698