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

Issue 2221933003: [Media Router WebUI] Append new sinks to the end of the list. (Closed)

Created:
4 years, 4 months ago by apacible
Modified:
4 years, 4 months ago
Reviewers:
imcheng
CC:
chromium-reviews, media-router+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Media Router WebUI] Append new sinks to the end of the list. Currently, when the sink list is updated in the WebUI, we just replace |sinksToShow_| in the container. This sometimes causes re-sorting and sinks suddenly appear in a different place. This can result in accidental casting to the wrong sink. This change appends new sinks to the end of the sink list. A user who has incrementally discovered sinks will see the dialog grow vertically as new sinks are appended at the bottom of the list. Also updated variable naming to make it more easily readable. BUG=634365 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/e23faebb13dc082e283a8e53d460a7cb8625aabd Cr-Commit-Position: refs/heads/master@{#410585}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Changes per imcheng@'s comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -4 lines) Patch
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js View 1 3 chunks +24 lines, -4 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_sink_list_tests.js View 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (25 generated)
apacible
PTAL, thanks! I plan merge this back to M53 before OOO, so would like to ...
4 years, 4 months ago (2016-08-09 01:43:07 UTC) #18
imcheng
As discussed, since we are no longer maintaining order by sink name, we should just ...
4 years, 4 months ago (2016-08-09 02:29:09 UTC) #21
imcheng
https://codereview.chromium.org/2221933003/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2221933003/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode2044 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:2044: updatedSinkList = this.sinksToShow_.concat(updatedSinkList); On 2016/08/09 02:29:09, imcheng wrote: > ...
4 years, 4 months ago (2016-08-09 02:29:55 UTC) #22
apacible
> As discussed, since we are no longer maintaining order by sink name, we should ...
4 years, 4 months ago (2016-08-09 04:02:39 UTC) #25
imcheng
On 2016/08/09 04:02:39, apacible wrote: > > As discussed, since we are no longer maintaining ...
4 years, 4 months ago (2016-08-09 04:31:10 UTC) #26
imcheng
lgtm after comments addressed https://codereview.chromium.org/2221933003/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2221933003/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode2029 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:2029: for (var j = 0; ...
4 years, 4 months ago (2016-08-09 04:31:27 UTC) #27
apacible
https://codereview.chromium.org/2221933003/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js (right): https://codereview.chromium.org/2221933003/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode2029 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:2029: for (var j = 0; j < updatedSinkList.length; j++) ...
4 years, 4 months ago (2016-08-09 05:23:00 UTC) #28
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/2221933003/60001
4 years, 4 months ago (2016-08-09 05:29:53 UTC) #31
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 4 months ago (2016-08-09 05:33:32 UTC) #33
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 05:36:16 UTC) #35
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e23faebb13dc082e283a8e53d460a7cb8625aabd
Cr-Commit-Position: refs/heads/master@{#410585}

Powered by Google App Engine
This is Rietveld 408576698