| 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 334bda9e42fff5438b51a713d7bd5581d61b78a5..d4824b1661459f0880fa26cf46111580aeb74ef9 100644
|
| --- a/chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc
|
| +++ b/chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include "base/command_line.h"
|
| #include "base/lazy_instance.h"
|
| -#include "chrome/browser/extensions/component_migration_helper.h"
|
| #include "chrome/browser/media/router/media_router_feature.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser.h"
|
| @@ -25,9 +24,6 @@ ComponentToolbarActionsFactory* testing_factory_ = nullptr;
|
| base::LazyInstance<ComponentToolbarActionsFactory> lazy_factory =
|
| LAZY_INSTANCE_INITIALIZER;
|
|
|
| -const char kCastExtensionId[] = "boadgeojelhgndaghljhdicfkmllpafd";
|
| -const char kCastBetaExtensionId[] = "dliochdbjfkdbacpmhlcpmleaejidimm";
|
| -
|
| } // namespace
|
|
|
| // static
|
| @@ -83,20 +79,3 @@ void ComponentToolbarActionsFactory::SetTestingFactory(
|
| ComponentToolbarActionsFactory* factory) {
|
| testing_factory_ = factory;
|
| }
|
| -
|
| -void ComponentToolbarActionsFactory::RegisterComponentMigrations(
|
| - extensions::ComponentMigrationHelper* helper) const {
|
| - helper->Register(kMediaRouterActionId, kCastExtensionId);
|
| - helper->Register(kMediaRouterActionId, kCastBetaExtensionId);
|
| -}
|
| -
|
| -void ComponentToolbarActionsFactory::HandleComponentMigrations(
|
| - extensions::ComponentMigrationHelper* helper,
|
| - Profile* profile) const {
|
| - if (media_router::MediaRouterEnabled(profile)) {
|
| - helper->OnFeatureEnabled(kMediaRouterActionId);
|
| - } else {
|
| - helper->OnFeatureDisabled(kMediaRouterActionId);
|
| - }
|
| -}
|
| -
|
|
|