Chromium Code Reviews
DescriptionDeprecated. New CL is here: https://codereview.chromium.org/2540773005/
[Media Router] Ensure dialog shows route details view if there is one local route
Currently, if the dialog WebUI requests the initial data before MediaRouterUI
receives it, the MediaRouterWebUIMessageHandler sends empty data to the WebUI.
This change removes routes info from the initial data, and makes MediaRouterUI
send the info either when it receives routes data for the first time or when it
is notified that WebUI has been initialized, whichever comes later. The WebUI
holds off on showing the initial view (sink list or route details) until it
receives routes info or 3 seconds passes.
This CL would delay the showing of dialogs in cases in which MediaRouterUI
receives routes data after sending initial data, and there are no local routes.
However, the alternative would be to show the sink list for a moment before
switching to details view (if there's one local route), which would be jarring.
BUG=667361
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Patch Set 1 #Patch Set 2 #
Total comments: 1
Messages
Total messages: 27 (16 generated)
|