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

Issue 1805813002: [Media Router] Wiring for searching route providers for new sinks. (Closed)

Created:
4 years, 9 months ago by btolsch
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, arv+watch_chromium.org, ben+mojo_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, feature-media-reviews_chromium.org, mcasas+watch_chromium.org, media-router+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+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] Wiring for searching route providers for new sinks. This change adds the ability for the filter UI to present the user with the option to create a new sink that is named with the currently entered search text if any route providers support this. This change adds all the necessary wiring for the UI to talk to the Media Router and for the Media Router to talk to the MRPM extension. Additionally, a route will be created to the currently selected media source if a sink is found. BUG=565696 R=amp@chromium.org,imcheng@chromium.org,apacible@chromium.org,mfoltz@chromium.org,isherman@chromium.org,avayvod@chromium.org Committed: https://crrev.com/2443442ccda2d3ce929704bdefb8965067c09045 Cr-Commit-Position: refs/heads/master@{#388591}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Pseudo sinks and automatic route creation #

Total comments: 47

Patch Set 3 : Tests and comments #

Patch Set 4 : Rebase for histograms.xml #

Patch Set 5 : Android stub #

Total comments: 16

Patch Set 6 : Comments and tests #

Total comments: 28

Patch Set 7 : Rebase #

Patch Set 8 : Comments and small refactor of UI #

Total comments: 2

Patch Set 9 : Clarifying pseudo sink comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1250 lines, -55 lines) Patch
M chrome/browser/media/android/router/media_router_android.h View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/media/android/router/media_router_android.cc View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/media/router/media_router.h View 1 2 3 4 5 6 7 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mock_media_router.h View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router.mojom View 1 2 3 4 5 6 7 4 chunks +33 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 2 3 4 5 6 7 5 chunks +29 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 2 3 4 5 6 7 3 chunks +71 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 2 3 4 5 6 2 chunks +62 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_metrics.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.h View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/media_router_resources.grdp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/media_router/compiled_resources.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js View 1 2 3 4 5 6 7 8 11 chunks +130 lines, -18 lines 0 comments Download
A chrome/browser/resources/media_router/elements/media_router_container/pseudo_sink_search_state.js View 1 2 3 4 5 6 7 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/browser/resources/media_router/media_router.js View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_data.js View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/media_router/media_router_ui_interface.js View 1 2 3 4 5 6 4 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_resources_provider.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.h View 1 2 3 4 5 3 chunks +22 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 4 5 6 7 7 chunks +75 lines, -25 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_webui_message_handler.cc View 1 2 3 4 5 6 7 6 chunks +51 lines, -0 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_container_filter_tests.js View 1 2 3 4 5 6 3 chunks +28 lines, -0 lines 0 comments Download
A chrome/test/data/webui/media_router/media_router_container_search_tests.js View 1 2 3 4 5 6 7 1 chunk +447 lines, -0 lines 0 comments Download
M chrome/test/data/webui/media_router/media_router_elements_browsertest.js View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 3 4 5 6 4 chunks +57 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 47 (16 generated)
btolsch
Naming and how to deal with cast modes/media sources is still up in the air. ...
4 years, 9 months ago (2016-03-16 02:52:47 UTC) #1
amp
Adding Derek as I am not a committer (may need someone else if Derek is ...
4 years, 9 months ago (2016-03-16 17:20:12 UTC) #3
amp
On 2016/03/16 17:20:12, amp wrote: > Adding Derek as I am not a committer (may ...
4 years, 9 months ago (2016-03-16 17:23:35 UTC) #4
btolsch
I added some explanations but we can sync offline too. PTAL, thanks! https://codereview.chromium.org/1805813002/diff/1/chrome/browser/media/router/media_router.mojom File chrome/browser/media/router/media_router.mojom ...
4 years, 9 months ago (2016-03-16 18:36:30 UTC) #7
btolsch
I think I have a good first draft of the pseudo sink method that was ...
4 years, 8 months ago (2016-04-05 21:31:32 UTC) #9
apacible
I haven't seen the MRP side changes yet, so mostly just resource/ comments. I'll take ...
4 years, 8 months ago (2016-04-06 21:27:02 UTC) #12
amp
Looks promising. I like the psuedo sink implementation, thanks for putting all the parts together ...
4 years, 8 months ago (2016-04-06 21:29:36 UTC) #13
apacible
Side note, are there screenshots and/or a screencast demo?
4 years, 8 months ago (2016-04-06 21:33:06 UTC) #14
btolsch
I think I've addressed all the comments and I've also added tests. I also had ...
4 years, 8 months ago (2016-04-08 09:31:26 UTC) #15
amp
Looks alright to me for the parts I understand. :) chrome/browser/ui/webui/media_router/media_router_ui.cc in particular is a ...
4 years, 8 months ago (2016-04-08 17:12:46 UTC) #16
apacible
https://codereview.chromium.org/1805813002/diff/80001/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/1805813002/diff/80001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode1498 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:1498: this.pseudoSinkSearchState_.getCurrentLaunchingSinkId(); There's some metrics we keep track of under ...
4 years, 8 months ago (2016-04-08 21:02:12 UTC) #17
btolsch
Hi Jennifer, I just wanted some clarification on the comments. Thanks! https://codereview.chromium.org/1805813002/diff/80001/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): ...
4 years, 8 months ago (2016-04-08 21:55:04 UTC) #18
apacible
https://codereview.chromium.org/1805813002/diff/80001/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/1805813002/diff/80001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode1498 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:1498: this.pseudoSinkSearchState_.getCurrentLaunchingSinkId(); On 2016/04/08 21:55:04, btolsch wrote: > On 2016/04/08 ...
4 years, 8 months ago (2016-04-08 22:07:47 UTC) #19
btolsch
https://codereview.chromium.org/1805813002/diff/80001/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/1805813002/diff/80001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode1560 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:1560: var sinksToShow = this.allSinks.filter(function(sink) { On 2016/04/08 22:07:47, apacible ...
4 years, 8 months ago (2016-04-08 22:19:18 UTC) #20
apacible
https://codereview.chromium.org/1805813002/diff/80001/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/1805813002/diff/80001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode1560 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:1560: var sinksToShow = this.allSinks.filter(function(sink) { On 2016/04/08 22:19:17, btolsch ...
4 years, 8 months ago (2016-04-08 22:48:40 UTC) #21
btolsch
+mfoltz for c/b/m/android/router +isherman for histograms.xml Addressed comments and added a few more tests. PTAL, ...
4 years, 8 months ago (2016-04-11 08:19:36 UTC) #24
Ilya Sherman
histograms.xml lgtm
4 years, 8 months ago (2016-04-11 20:56:15 UTC) #25
apacible
lgtm
4 years, 8 months ago (2016-04-11 21:30:49 UTC) #26
amp
lgtm
4 years, 8 months ago (2016-04-15 00:31:16 UTC) #27
amp
Ping. Mark or Derek did you have any concerns with this? As the extension side ...
4 years, 8 months ago (2016-04-18 17:20:40 UTC) #28
imcheng
looks ok overall. Two high level comments: 1) The number of input parameters on CreateRoute ...
4 years, 8 months ago (2016-04-18 23:15:47 UTC) #29
btolsch
Derek, there was one comment I didn't quite understand but I believe I've addressed the ...
4 years, 8 months ago (2016-04-19 01:39:43 UTC) #30
imcheng
lgtm https://codereview.chromium.org/1805813002/diff/100001/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/1805813002/diff/100001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode1477 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:1477: this.pseudoSinkSearchState_.receiveSinkResponse(sinkId); On 2016/04/19 01:39:43, btolsch wrote: > On ...
4 years, 8 months ago (2016-04-19 19:52:37 UTC) #31
btolsch
https://codereview.chromium.org/1805813002/diff/100001/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/1805813002/diff/100001/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js#newcode1477 chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js:1477: this.pseudoSinkSearchState_.receiveSinkResponse(sinkId); On 2016/04/19 19:52:36, imcheng wrote: > On 2016/04/19 ...
4 years, 8 months ago (2016-04-20 04:20:23 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805813002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805813002/160001
4 years, 8 months ago (2016-04-20 04:20:51 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/170698)
4 years, 8 months ago (2016-04-20 04:29:06 UTC) #37
btolsch
+avayvod for c/b/m/android files.
4 years, 8 months ago (2016-04-20 16:32:50 UTC) #40
whywhat
android lgtm
4 years, 8 months ago (2016-04-20 19:47:19 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805813002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805813002/160001
4 years, 8 months ago (2016-04-20 23:13:55 UTC) #43
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-20 23:25:55 UTC) #45
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:27:10 UTC) #47
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/2443442ccda2d3ce929704bdefb8965067c09045
Cr-Commit-Position: refs/heads/master@{#388591}

Powered by Google App Engine
This is Rietveld 408576698