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 Review-Url: https://codereview.chromium.org/2530443002 Cr-Commit-Position: refs/heads/master@{#434715}
Showing
Please register or sign in to comment