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

Issue 1475843002: [MR] Add description field to MediaSink. (Closed)

Created:
5 years ago by imcheng
Modified:
5 years ago
Reviewers:
apacible
CC:
chromium-reviews, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, qsr+mojo_chromium.org, media-router+watch_chromium.org, viettrungluu+watch_chromium.org, posciak+watch_chromium.org, mcasas+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, arv+watch_chromium.org, chromium-apps-reviews_chromium.org, darin (slow to review), ben+mojo_chromium.org, amp
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MR] Add description field to MediaSink. description is an optional field on MediaSink which can be used for displaying information on the sink itself in the UI. The sink description will be displayed as a subtext under the sink name. If the sink is currently associated with a route, then the route description is displayed in the subtext instead. Applied conditional stamping to the subtext in media-router-container. Currently, most sinks will not have subtexts in typical usage. BUG=545138 Committed: https://crrev.com/a743f7f9316a2336257b6daf0570e4c2b2a982e6 Cr-Commit-Position: refs/heads/master@{#363314}

Patch Set 1 : #

Total comments: 18

Patch Set 2 : Addressed comment #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : Fix tests #

Total comments: 6

Patch Set 5 : Addressed comments #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -84 lines) Patch
M chrome/browser/media/router/media_router.mojom View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router_type_converters.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/media/router/media_router_type_converters_unittest.cc View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/media/router/media_sink.h View 1 chunk +11 lines, -4 lines 0 comments Download
M chrome/browser/media/router/media_sink.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css View 1 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html View 1 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js View 1 2 3 4 5 3 chunks +42 lines, -21 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_data.js View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_tests.js View 1 5 chunks +48 lines, -38 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
imcheng
Jennifer: PTAL +CC amp https://codereview.chromium.org/1475843002/diff/20001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css File chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css (right): https://codereview.chromium.org/1475843002/diff/20001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css#newcode98 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.css:98: .sink-subtext { Instead of making ...
5 years ago (2015-11-25 00:54:45 UTC) #3
apacible
I haven't taken a look yet, but please add screenshots (route description vs sink description, ...
5 years ago (2015-11-25 01:09:01 UTC) #4
imcheng
LTR: https://screenshot.googleplex.com/o2HKnvBLQFp RTL: https://screenshot.googleplex.com/s4ecJVvoAkk
5 years ago (2015-11-25 18:17:04 UTC) #5
apacible
https://codereview.chromium.org/1475843002/diff/20001/chrome/browser/media/router/media_sink.cc File chrome/browser/media/router/media_sink.cc (right): https://codereview.chromium.org/1475843002/diff/20001/chrome/browser/media/router/media_sink.cc#newcode12 chrome/browser/media/router/media_sink.cc:12: : sink_id_(sink_id), name_(name), icon_type_(icon_type) {} What happens if |sink_id| ...
5 years ago (2015-11-25 23:05:41 UTC) #6
imcheng
PTAL https://codereview.chromium.org/1475843002/diff/20001/chrome/browser/media/router/media_sink.cc File chrome/browser/media/router/media_sink.cc (right): https://codereview.chromium.org/1475843002/diff/20001/chrome/browser/media/router/media_sink.cc#newcode12 chrome/browser/media/router/media_sink.cc:12: : sink_id_(sink_id), name_(name), icon_type_(icon_type) {} On 2015/11/25 23:05:41, ...
5 years ago (2015-12-01 19:29:27 UTC) #7
apacible
lgtm https://codereview.chromium.org/1475843002/diff/20001/chrome/test/data/webui/media_router/media_router_container_tests.js File chrome/test/data/webui/media_router/media_router_container_tests.js (right): https://codereview.chromium.org/1475843002/diff/20001/chrome/test/data/webui/media_router/media_router_container_tests.js#newcode312 chrome/test/data/webui/media_router/media_router_container_tests.js:312: container.allSinks = [ On 2015/12/01 19:29:27, imcheng1 wrote: ...
5 years ago (2015-12-02 23:27:27 UTC) #8
imcheng
https://codereview.chromium.org/1475843002/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/1475843002/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode499 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:499: return isEmptyOrWhitespace_(route.description); On 2015/12/02 23:27:26, apacible wrote: > return ...
5 years ago (2015-12-03 23:11:07 UTC) #9
apacible
https://codereview.chromium.org/1475843002/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/1475843002/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode499 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:499: return isEmptyOrWhitespace_(route.description); On 2015/12/03 23:11:07, imcheng1 wrote: > On ...
5 years ago (2015-12-03 23:12:45 UTC) #10
imcheng
https://codereview.chromium.org/1475843002/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/1475843002/diff/40001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode499 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:499: return isEmptyOrWhitespace_(route.description); On 2015/12/03 23:12:45, apacible wrote: > On ...
5 years ago (2015-12-03 23:20:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1475843002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1475843002/120001
5 years ago (2015-12-04 01:05:22 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_dbg on ...
5 years ago (2015-12-04 03:11:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1475843002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1475843002/120001
5 years ago (2015-12-05 00:36:04 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years ago (2015-12-05 00:41:40 UTC) #19
commit-bot: I haz the power
5 years ago (2015-12-05 00:42:23 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a743f7f9316a2336257b6daf0570e4c2b2a982e6
Cr-Commit-Position: refs/heads/master@{#363314}

Powered by Google App Engine
This is Rietveld 408576698