Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1390)

Unified Diff: chrome/browser/ui/toolbar/component_toolbar_actions_factory.cc

Issue 2678083005: Remove extension-to-component migration mechanism (Closed)
Patch Set: Address Derek's comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
- }
-}
-

Powered by Google App Engine
This is Rietveld 408576698