summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_action_manager.cc
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-24 15:20:59 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-24 15:20:59 +0000
commit808b69a768760e5b7df56ab98e3205212af5fd49 (patch)
tree48e9e7d3a35536f5a21e16cf912293f1a9c9241e /chrome/browser/extensions/extension_action_manager.cc
parent232d6b248e0abe7f23b4de6866ca751c705cd240 (diff)
downloadchromium_src-808b69a768760e5b7df56ab98e3205212af5fd49.zip
chromium_src-808b69a768760e5b7df56ab98e3205212af5fd49.tar.gz
chromium_src-808b69a768760e5b7df56ab98e3205212af5fd49.tar.bz2
The Script Bubble and Script Badge were two extension experiments that didn't go anywhere -- so there's no need to carry them around anymore.
BUG=302083 TBR=sky Review URL: https://codereview.chromium.org/99363003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_action_manager.cc')
-rw-r--r--chrome/browser/extensions/extension_action_manager.cc27
1 files changed, 3 insertions, 24 deletions
diff --git a/chrome/browser/extensions/extension_action_manager.cc b/chrome/browser/extensions/extension_action_manager.cc
index d010b9f..3804c46 100644
--- a/chrome/browser/extensions/extension_action_manager.cc
+++ b/chrome/browser/extensions/extension_action_manager.cc
@@ -14,7 +14,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/extension_action/action_info.h"
#include "chrome/common/extensions/api/extension_action/page_action_handler.h"
-#include "chrome/common/extensions/api/extension_action/script_badge_handler.h"
#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
#include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
#include "content/public/browser/notification_service.h"
@@ -91,7 +90,6 @@ void ExtensionActionManager::Observe(
content::Details<UnloadedExtensionInfo>(details)->extension;
page_actions_.erase(extension->id());
browser_actions_.erase(extension->id());
- script_badges_.erase(extension->id());
system_indicators_.erase(extension->id());
break;
}
@@ -135,10 +133,6 @@ ExtensionAction* GetOrCreateOrNull(
ExtensionAction* ExtensionActionManager::GetPageAction(
const extensions::Extension& extension) const {
- // The action box changes the meaning of the page action area, so we
- // need to convert page actions into browser actions.
- if (FeatureSwitch::script_badges()->IsEnabled())
- return NULL;
return GetOrCreateOrNull(&page_actions_, extension.id(),
ActionInfo::TYPE_PAGE,
ActionInfo::GetPageActionInfo(&extension),
@@ -147,17 +141,10 @@ ExtensionAction* ExtensionActionManager::GetPageAction(
ExtensionAction* ExtensionActionManager::GetBrowserAction(
const extensions::Extension& extension) const {
- const ActionInfo* action_info = ActionInfo::GetBrowserActionInfo(&extension);
- ActionInfo::Type action_type = ActionInfo::TYPE_BROWSER;
- if (FeatureSwitch::script_badges()->IsEnabled() &&
- ActionInfo::GetPageActionInfo(&extension)) {
- // The action box changes the meaning of the page action area, so we
- // need to convert page actions into browser actions.
- action_info = ActionInfo::GetPageActionInfo(&extension);
- action_type = ActionInfo::TYPE_PAGE;
- }
return GetOrCreateOrNull(&browser_actions_, extension.id(),
- action_type, action_info, profile_);
+ ActionInfo::TYPE_BROWSER,
+ ActionInfo::GetBrowserActionInfo(&extension),
+ profile_);
}
ExtensionAction* ExtensionActionManager::GetSystemIndicator(
@@ -175,12 +162,4 @@ ExtensionAction* ExtensionActionManager::GetSystemIndicator(
profile_);
}
-ExtensionAction* ExtensionActionManager::GetScriptBadge(
- const extensions::Extension& extension) const {
- return GetOrCreateOrNull(&script_badges_, extension.id(),
- ActionInfo::TYPE_SCRIPT_BADGE,
- ActionInfo::GetScriptBadgeInfo(&extension),
- profile_);
-}
-
} // namespace extensions