diff options
author | chrome-bot@google.com <chrome-bot@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-02 00:14:02 +0000 |
---|---|---|
committer | chrome-bot@google.com <chrome-bot@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-02 00:14:02 +0000 |
commit | 4523fd290e2915710025b46c15be689cb7638a00 (patch) | |
tree | 85ab2b1efd9ec09e08ac247128c8dda0735b4399 /chrome/browser/extensions/extension_function_dispatcher.cc | |
parent | bf0b51cbeef6ec8f7dc0d5fb46c76a739be5f84d (diff) | |
download | chromium_src-4523fd290e2915710025b46c15be689cb7638a00.zip chromium_src-4523fd290e2915710025b46c15be689cb7638a00.tar.gz chromium_src-4523fd290e2915710025b46c15be689cb7638a00.tar.bz2 |
Rolling back change 22245.
Too much red :-(
BUG=None
TEST=None
TBR=erikkay
Review URL: http://codereview.chromium.org/159763
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function_dispatcher.cc')
-rw-r--r-- | chrome/browser/extensions/extension_function_dispatcher.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc index 5d03e1f..40c5996 100644 --- a/chrome/browser/extensions/extension_function_dispatcher.cc +++ b/chrome/browser/extensions/extension_function_dispatcher.cc @@ -16,12 +16,10 @@ #include "chrome/browser/extensions/extension_process_manager.h" #include "chrome/browser/extensions/extension_tabs_module.h" #include "chrome/browser/extensions/extension_tabs_module_constants.h" -#include "chrome/browser/extensions/extension_toolstrip_api.h" #include "chrome/browser/profile.h" #include "chrome/browser/renderer_host/render_process_host.h" #include "chrome/browser/renderer_host/render_view_host.h" #include "chrome/common/result_codes.h" -#include "chrome/common/url_constants.h" // FactoryRegistry ------------------------------------------------------------- @@ -69,7 +67,6 @@ void FactoryRegistry::ResetFunctions() { namespace tabs = extension_tabs_module_constants; namespace page_actions = extension_page_actions_module_constants; namespace bookmarks = extension_bookmarks_module_constants; - namespace toolstrip = extension_toolstrip_api_functions; // Windows factories_[tabs::kGetWindowFunction] = @@ -130,12 +127,6 @@ void FactoryRegistry::ResetFunctions() { &NewExtensionFunction<MoveBookmarkFunction>; factories_[bookmarks::kSetBookmarkTitleFunction] = &NewExtensionFunction<SetBookmarkTitleFunction>; - - // Toolstrips. - factories_[toolstrip::kExpandFunction] = - &NewExtensionFunction<ToolstripExpandFunction>; - factories_[toolstrip::kCollapseFunction] = - &NewExtensionFunction<ToolstripCollapseFunction>; } void FactoryRegistry::GetAllNames(std::vector<std::string>* names) { @@ -196,10 +187,6 @@ ExtensionFunctionDispatcher::ExtensionFunctionDispatcher( delegate_(delegate), url_(url), ALLOW_THIS_IN_INITIALIZER_LIST(peer_(new Peer(this))) { - // TODO(erikkay) should we do something for these errors in Release? - DCHECK(url.SchemeIs(chrome::kExtensionScheme)); - DCHECK(profile()->GetExtensionsService()->GetExtensionByURL(url)); - all_instances()->insert(this); // Notify the ExtensionProcessManager that the view was created. @@ -220,11 +207,6 @@ Browser* ExtensionFunctionDispatcher::GetBrowser() { return retval; } -ExtensionHost* ExtensionFunctionDispatcher::GetExtensionHost() { - DCHECK(delegate_); - return delegate_->GetExtensionHost(); -} - void ExtensionFunctionDispatcher::HandleRequest(const std::string& name, const std::string& args, int request_id, |