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

Issue 2518083002: Deprecated: [Media Router] Ensure dialog shows route details view if there is one local route (Closed)

Created:
4 years, 1 month ago by takumif
Modified:
4 years ago
Reviewers:
mark a. foltz, imcheng
CC:
chromium-reviews, media-router+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Deprecated. 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -41 lines) Patch
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js View 1 8 chunks +61 lines, -20 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_ui_interface.js View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 4 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc View 1 4 chunks +59 lines, -4 lines 1 comment Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_first_run_flow_tests.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_route_tests.js View 1 5 chunks +37 lines, -2 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_search_tests.js View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_sink_list_tests.js View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (16 generated)
takumif
Please take a look, thank you!
4 years, 1 month ago (2016-11-21 22:53:17 UTC) #7
mark a. foltz
Note: make sure we aren't blocking launch/rendering of the WebUI on data from the Media ...
4 years, 1 month ago (2016-11-21 23:07:11 UTC) #9
takumif
On 2016/11/21 23:07:11, mark a. foltz wrote: > Note: make sure we aren't blocking launch/rendering ...
4 years, 1 month ago (2016-11-22 00:02:22 UTC) #10
mark a. foltz
On 2016/11/22 at 00:02:22, takumif wrote: > On 2016/11/21 23:07:11, mark a. foltz wrote: > ...
4 years, 1 month ago (2016-11-22 00:36:10 UTC) #11
imcheng
Thanks for taking this on Takumi. This change looks a bit complicated and we have ...
4 years, 1 month ago (2016-11-22 00:48:34 UTC) #12
takumif
On 2016/11/22 00:48:34, imcheng wrote: > Thanks for taking this on Takumi. This change looks ...
4 years, 1 month ago (2016-11-22 01:26:24 UTC) #13
takumif
As per offline discussions with Derek I've changed this CL (info in the CL description). ...
4 years ago (2016-11-29 01:18:12 UTC) #20
mark a. foltz
On 2016/11/29 at 01:18:12, takumif wrote: > As per offline discussions with Derek I've changed ...
4 years ago (2016-11-29 22:14:05 UTC) #23
mark a. foltz
https://codereview.chromium.org/2518083002/diff/100001/chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc File chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc (right): https://codereview.chromium.org/2518083002/diff/100001/chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc#newcode605 chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc:605: CreateMediaRouterUI(&profile_); Nit: Calling this twice in the same test ...
4 years ago (2016-11-29 22:24:10 UTC) #24
imcheng
On 2016/11/29 22:24:10, mark a. foltz wrote: > https://codereview.chromium.org/2518083002/diff/100001/chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc > File chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc (right): > > ...
4 years ago (2016-11-29 23:54:09 UTC) #25
mark a. foltz
4 years ago (2016-11-30 23:02:45 UTC) #27
Assuming you don't intend on landing this patch, I'll close the issue.  Thx

Powered by Google App Engine
This is Rietveld 408576698