[Local Screen Casting] Do not try to get the primary display when no displays
This CL makes WiredDisplayMediaRouteProvider not check for the primary display when there is 0 or 1 display. This should fix the crash in which WDMRP attempts to get the primary display when the primary display ID is invalid. Bug: 803881 Change-Id: I095ff7a69b1777c3466d2b6378fcd95e497c5641 Reviewed-on: https://chromium-review.googlesource.com/895389Reviewed-by:Derek Cheng <imcheng@chromium.org> Commit-Queue: Takumi Fujimoto <takumif@chromium.org> Cr-Commit-Position: refs/heads/master@{#533760}
Showing
Please register or sign in to comment