Chromium Code Reviews
Description[Media Router WebUI] Clear pending route creation properties on error.
Sometimes, routes are created but initially "not for display". These are later resolved as "for display", then updated with an updated route list from the MRP to the WebUI.
Currently, when a route fails to resolve "for display", an issue is sent to the WebUI but no indication that the route creation had failed. This causes the sink that is currently "pending route launch" to show the spinner forever, rendering the rest of the sink list unable to create a route.
This change corresponds with a change in the MRP that makes use of the |routeId| field in an incoming issue and clears any pending route creation properties if the error corresponds to |pendingCreatedRouteId_|. This also renames |mediaRouteId| to |routeId| to be uniform with other references.
BUG=592081
Committed: https://crrev.com/813d605e717ff246ea1bf65e11db6fbb4cf8679e
Cr-Commit-Position: refs/heads/master@{#382640}
Patch Set 1 : #
Total comments: 4
Patch Set 2 : Changes per mfoltz@'s comments. #
Messages
Total messages: 17 (10 generated)
|
||||||||||||||||||||||||||||