[Local Screen Casting] Hide the sink for the controlling window's display
We will observe which display the Media Router dialog's initiator web contents are on, and hide the local screen sink for that display from the sink list. This is to prevent the user from launching a presentation window that covers the controlling window. It would be nicer if the WiredDisplayMRP were responsible for determining which sinks should be disabled. Unfortunately, there is no clean way for MRUI to notify WiredDisplayMRP which display the dialog is on. So it is done in MRUI instead. Also doing some cleanups in MRUI (base::MakeUnique to std::make_unique, base::Callback to base::RepeatingCallback). Bug: 800433 Change-Id: I0ec74758c485b89eee4f4417b7358922aa4f32a1 Reviewed-on: https://chromium-review.googlesource.com/830972 Commit-Queue: Takumi Fujimoto <takumif@chromium.org> Reviewed-by:Derek Cheng <imcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#533814}
Showing
Please register or sign in to comment