This CL [1] makes ToolbarActionsModel ignore AddComponentAction() calls before initialization. Such calls are sometimes made by MediaRouterActionController, which results in the media router toolbar action not being shown when it's supposed to.
To be able to show the ignored actions at ToolbarActionsModel's initialization, we should redesign ComponentToolbarActionsFactory and ComponentMigrationHelper (more discussion in the CL's comments).
[1] https://codereview.chromium.org/2450633004/
Comment 1 by mfo...@chromium.org
, Oct 31 2016