Index: chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc |
diff --git a/chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc b/chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc |
index c96b7653f08003673fc5a42a0a7f8e43568ccc16..e9c1f0dfaf63d3de754b247a120a4a5d40e2f0e4 100644 |
--- a/chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc |
+++ b/chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc |
@@ -43,8 +43,10 @@ ComponentToolbarActionsFactory::GetComponentToolbarActions() { |
// (since each will have an action in the toolbar or overflow menu), this |
// should be okay. If this changes, we should rethink this design to have, |
// e.g., RegisterChromeAction(). |
+#if defined(ENABLE_MEDIA_ROUTER) |
if (media_router_ui_enabled_) |
component_actions.push_back(new MediaRouterAction()); |
+#endif // defined(ENABLE_MEDIA_ROUTER) |
return component_actions.Pass(); |
} |