summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function_dispatcher.cc
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 22:56:17 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-03 22:56:17 +0000
commitd5164137cb9b245bca89bef253bc395adcb7861c (patch)
tree2f37bf8e07eb1fbfaca4d8ae3793efca1839c0ca /chrome/browser/extensions/extension_function_dispatcher.cc
parent36c85b45eb0a85cea1560da9414595323fa56590 (diff)
downloadchromium_src-d5164137cb9b245bca89bef253bc395adcb7861c.zip
chromium_src-d5164137cb9b245bca89bef253bc395adcb7861c.tar.gz
chromium_src-d5164137cb9b245bca89bef253bc395adcb7861c.tar.bz2
Include App pages in chrome://extensions "active views" list.
This changes the implementation such that the extensions_ui now iterates over all the RVHs in the process, rather than maintain an explicit list of ExtensionFunctionDispatchers (live app pages don't have EFDs). TEST=none BUG=42605 Review URL: http://codereview.chromium.org/1827002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46295 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function_dispatcher.cc')
-rw-r--r--chrome/browser/extensions/extension_function_dispatcher.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index e788c80..37080c8 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -262,12 +262,6 @@ void ExtensionFunctionDispatcher::ResetFunctions() {
FactoryRegistry::instance()->ResetFunctions();
}
-std::set<ExtensionFunctionDispatcher*>*
- ExtensionFunctionDispatcher::all_instances() {
- static std::set<ExtensionFunctionDispatcher*> instances;
- return &instances;
-}
-
ExtensionFunctionDispatcher* ExtensionFunctionDispatcher::Create(
RenderViewHost* render_view_host,
Delegate* delegate,
@@ -298,8 +292,6 @@ ExtensionFunctionDispatcher::ExtensionFunctionDispatcher(
DCHECK(url.SchemeIs(chrome::kExtensionScheme));
DCHECK(extension);
- all_instances()->insert(this);
-
// Notify the ExtensionProcessManager that the view was created.
ExtensionProcessManager* epm = profile()->GetExtensionProcessManager();
epm->RegisterExtensionProcess(extension_id(),
@@ -337,7 +329,6 @@ ExtensionFunctionDispatcher::ExtensionFunctionDispatcher(
}
ExtensionFunctionDispatcher::~ExtensionFunctionDispatcher() {
- all_instances()->erase(this);
peer_->dispatcher_ = NULL;
NotificationService::current()->Notify(