Description[Media Router] Check MediaRouterDialogControllerImpl only sets toolbar MediaRouterAction.
This is a follow up to an earlier patch[1] to only keep track of the first MediaRouterAction that is created in MediaRouterDialogControllerImpl.
Currently, the toolbar action is created before the overflow action since the overflow would require the explicit opening of the overflow menu. However, in case there is an initialization change, this added check ensures only the toolbar MediaRouterAction instance is set in MediaRouterDialogControllerImpl. A new MediaRouterDialogControllerImpl is created for every new browser window that is opened.
[1] https://codereview.chromium.org/1476053002/
BUG=531578
Committed: https://crrev.com/c0b006adb6231ef65d9e99bd16d527addfa28f4c
Cr-Commit-Position: refs/heads/master@{#363693}
Patch Set 1 #
Total comments: 14
Patch Set 2 : Fix tests. #Patch Set 3 : Changes per pkasting@'s comments. #
Total comments: 2
Patch Set 4 : Rebase. #Patch Set 5 : Changes per pkasting@'s comments. Fixed OSX segfaults. #Messages
Total messages: 18 (10 generated)
|