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

Issue 1862913004: [Media Router] Wire through a new MRPM call to update media sinks. (Closed)

Created:
4 years, 8 months ago by amp
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, btolsch, 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] Wire through a new MRPM call to update media sinks. This will allow any discovery which is based off of sink queries (such as the Cloud MRP) an opportuntity to find new sinks even if the MRP is marked as UNVAILABLE. BUG=601065 Committed: https://crrev.com/c2f9e3a5a7bf211b14c1be7ae8bfa65a518c2b85 Cr-Commit-Position: refs/heads/master@{#387809}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed indent, added wake reason. #

Total comments: 8

Patch Set 3 : Addressed comments, tests still need some work. #

Patch Set 4 : Rebased against head #

Patch Set 5 : Fixed (and simplified) tests. #

Total comments: 6

Patch Set 6 : Address comments, fix tests on windows #

Patch Set 7 : rebase #

Patch Set 8 : Still trying to fix tests on windows #

Patch Set 9 : Really fix tests. :) #

Total comments: 4

Patch Set 10 : add missing run loops #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -16 lines) Patch
M chrome/browser/media/router/mojo/media_router.mojom View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl.cc View 1 2 3 4 5 3 chunks +18 lines, -0 lines 2 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +61 lines, -13 lines 3 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_metrics.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/media/router/mojo/media_router_mojo_test.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M extensions/renderer/resources/media_router_bindings.js View 1 2 3 chunks +14 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: 40 (17 generated)
amp
Extension side changes are still pending. I wanted to lock down the naming and proper ...
4 years, 8 months ago (2016-04-06 16:23:35 UTC) #2
apacible
https://codereview.chromium.org/1862913004/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right): https://codereview.chromium.org/1862913004/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode991 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:991: media_route_provider_->StartDiscovery(); nit: indent https://codereview.chromium.org/1862913004/diff/1/chrome/browser/media/router/mojo/media_router_mojo_metrics.h File chrome/browser/media/router/mojo/media_router_mojo_metrics.h (right): https://codereview.chromium.org/1862913004/diff/1/chrome/browser/media/router/mojo/media_router_mojo_metrics.h#newcode43 chrome/browser/media/router/mojo/media_router_mojo_metrics.h:43: ...
4 years, 8 months ago (2016-04-06 17:50:18 UTC) #3
amp
https://codereview.chromium.org/1862913004/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right): https://codereview.chromium.org/1862913004/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode970 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:970: RunOrDefer(base::Bind(&MediaRouterMojoImpl::DoEnsureMdnsDiscoveryEnabled, Do I need this RunOrDefer logic for the ...
4 years, 8 months ago (2016-04-07 20:37:39 UTC) #4
mark a. foltz
Feedback on API. Can you elaborate the patch description when you get a chance? https://codereview.chromium.org/1862913004/diff/20001/chrome/browser/media/router/mojo/media_router.mojom ...
4 years, 8 months ago (2016-04-07 22:45:00 UTC) #5
apacible
https://codereview.chromium.org/1862913004/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right): https://codereview.chromium.org/1862913004/diff/1/chrome/browser/media/router/mojo/media_router_mojo_impl.cc#newcode970 chrome/browser/media/router/mojo/media_router_mojo_impl.cc:970: RunOrDefer(base::Bind(&MediaRouterMojoImpl::DoEnsureMdnsDiscoveryEnabled, On 2016/04/07 20:37:39, amp wrote: > Do I ...
4 years, 8 months ago (2016-04-08 16:46:45 UTC) #6
amp
+mpearson for histogram I updated the commit description, but I'm not sure if that is ...
4 years, 8 months ago (2016-04-09 00:02:12 UTC) #8
Mark P
histograms.xml lgtm
4 years, 8 months ago (2016-04-11 22:42:38 UTC) #10
amp
+Derek to take a look as well. Tests are now passing.
4 years, 8 months ago (2016-04-15 00:17:11 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862913004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862913004/80001
4 years, 8 months ago (2016-04-15 00:24:43 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/205515)
4 years, 8 months ago (2016-04-15 01:51:07 UTC) #16
imcheng
lgtm % minor comments https://codereview.chromium.org/1862913004/diff/80001/chrome/browser/media/router/mojo/media_router.mojom File chrome/browser/media/router/mojo/media_router.mojom (right): https://codereview.chromium.org/1862913004/diff/80001/chrome/browser/media/router/mojo/media_router.mojom#newcode290 chrome/browser/media/router/mojo/media_router.mojom:290: // Update media sinks capable ...
4 years, 8 months ago (2016-04-15 18:37:03 UTC) #17
amp
https://codereview.chromium.org/1862913004/diff/80001/chrome/browser/media/router/mojo/media_router.mojom File chrome/browser/media/router/mojo/media_router.mojom (right): https://codereview.chromium.org/1862913004/diff/80001/chrome/browser/media/router/mojo/media_router.mojom#newcode290 chrome/browser/media/router/mojo/media_router.mojom:290: // Update media sinks capable of displaying |media_source|. On ...
4 years, 8 months ago (2016-04-15 20:29:34 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862913004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862913004/120001
4 years, 8 months ago (2016-04-15 20:30:22 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862913004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862913004/140001
4 years, 8 months ago (2016-04-15 22:04:54 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/7213)
4 years, 8 months ago (2016-04-15 22:49:33 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862913004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862913004/160001
4 years, 8 months ago (2016-04-15 22:53:41 UTC) #27
btolsch
https://codereview.chromium.org/1862913004/diff/160001/chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc File chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc (right): https://codereview.chromium.org/1862913004/diff/160001/chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc#newcode1489 chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc:1489: media_router_->OnUserGesture(); Add another RunLoop here to send the mojo ...
4 years, 8 months ago (2016-04-16 00:25:56 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/198768)
4 years, 8 months ago (2016-04-16 00:59:30 UTC) #31
amp
Thanks for the pointers Brandon. Hopefully this gets the tests passing. https://codereview.chromium.org/1862913004/diff/160001/chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc File chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc (right): ...
4 years, 8 months ago (2016-04-16 01:35:52 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1862913004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1862913004/180001
4 years, 8 months ago (2016-04-16 01:39:04 UTC) #35
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 8 months ago (2016-04-16 03:20:38 UTC) #37
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/c2f9e3a5a7bf211b14c1be7ae8bfa65a518c2b85 Cr-Commit-Position: refs/heads/master@{#387809}
4 years, 8 months ago (2016-04-16 03:22:14 UTC) #39
mark a. foltz
4 years, 8 months ago (2016-04-22 22:20:39 UTC) #40
Message was sent while issue was closed.
Belated LGTM with a couple of drive by comments.  Nothing urgent to address.

https://codereview.chromium.org/1862913004/diff/180001/chrome/browser/media/r...
File chrome/browser/media/router/mojo/media_router_mojo_impl.cc (right):

https://codereview.chromium.org/1862913004/diff/180001/chrome/browser/media/r...
chrome/browser/media/router/mojo/media_router_mojo_impl.cc:434: // media source.
I think some comment here about why we're discovering specifically for the
desktop source would be helpful.

https://codereview.chromium.org/1862913004/diff/180001/chrome/browser/media/r...
chrome/browser/media/router/mojo/media_router_mojo_impl.cc:998:
SetWakeReason(MediaRouteProviderWakeReason::UPDATE_MEDIA_SINKS);
We should see wakeups < the number of times the dialog is opened.

https://codereview.chromium.org/1862913004/diff/180001/chrome/browser/media/r...
File chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc
(right):

https://codereview.chromium.org/1862913004/diff/180001/chrome/browser/media/r...
chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc:1533:
run_loop7.RunUntilIdle();
These run loops are getting crazy.  The mock MRP should be fixed to not require
this manual start/stop of the message loop.

https://codereview.chromium.org/1862913004/diff/180001/chrome/browser/media/r...
chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc:1547: //
Windows calls once for EnableMdnsDiscovery
"...calls an additional time for..."

https://codereview.chromium.org/1862913004/diff/180001/chrome/browser/media/r...
chrome/browser/media/router/mojo/media_router_mojo_impl_unittest.cc:1550: // All
others call once for registration, and once for the user gesture.
Thanks for adding comments to the expectations.

Powered by Google App Engine
This is Rietveld 408576698