Description[Media Router] Only keep track of toolbar MediaRouterAction in MediaRouterDialogControllerImpl.
From some previous miscommunication, we assumed there was only one MediaRouterAction for each browser window instance. This is right and wrong -- there is only one MediaRouterAction for the toolbar, but there can be MediaRouterActions created and destroyed every time the overflow menu is opened. This meant that we were initially setting |action_| in MediaRouterDialogControllerImpl with the (intended) toolbar MediaRouterAction. Every time we open the overflow menu (click on wrench/hotdog icon), |action_| would be reset to a MediaRouterAction that's destroyed when the overflow menu is closed.
This change makes it such that we only keep track of the toolbar MediaRouterAction, which will always be the first MediaRouterAction that is created when the browser is opened.
BUG=531578
Committed: https://crrev.com/879ad12d519f2a50671e999e5a2c2459db0d9495
Cr-Commit-Position: refs/heads/master@{#362522}
Patch Set 1 #
Messages
Total messages: 16 (8 generated)
|