Chromium Code Reviews
DescriptionRefactor Clank cast connect logic
This is a cleanup of the Clank cast connect logic. It:
1) Removes the assumption in the C++ code that only one video is
being cast. The C++ code doesn't need to know about this restriction,
which could, conceivably, be removed in future.
2) Moves most of the connect logic to Java, reducing the number of
transfers of control between Java and C++. This also simplifies the
connect logic, and removes some unnecessary interactions with the
Chromecast (see https://crbug/443210)
This also fixes pressing cast button on new video while casting
(https://454789).
Pressing the cast button on a new video while casting will now simply
switch to that video. We can't, with the current code structure, switch
cast devices at this point, so there is no point in putting up the chooser
dialog.
The previous behaviour was broken, as described in the bug.
This CL doesn't tidy up the disconnect code, I plan to do that in a separate
CL.
BUG=454798
BUG=443210
Committed: https://crrev.com/28753f3725cd63b67b1bd209592019d2780bc63d
Cr-Commit-Position: refs/heads/master@{#354277}
Patch Set 1 #
Total comments: 49
Patch Set 2 : Fixes from comments #
Total comments: 2
Patch Set 3 : Fix nits #Patch Set 4 : Fix nits #Patch Set 5 : Fix trybot detected error. #Messages
Total messages: 19 (6 generated)
|