From 4bae577ea5e80c18d50cbfbd69892412a960a617 Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Wed, 11 May 2011 23:54:37 +0000 Subject: Re-land r84928: Move ExtensionFunctionDispatcher to ExtensionTabHelper. This reverts commit 89a6b9d9232949a01b8263779fa819ed4d5b3089. TBR=mpcomplete@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85076 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/sidebar/sidebar_container.cc | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'chrome/browser/sidebar') diff --git a/chrome/browser/sidebar/sidebar_container.cc b/chrome/browser/sidebar/sidebar_container.cc index 99c69a5..d1e4a33 100644 --- a/chrome/browser/sidebar/sidebar_container.cc +++ b/chrome/browser/sidebar/sidebar_container.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -16,7 +16,6 @@ #include "content/browser/tab_contents/navigation_entry.h" #include "content/browser/tab_contents/tab_contents.h" #include "content/browser/tab_contents/tab_contents_view.h" -#include "content/common/bindings_policy.h" #include "googleurl/src/gurl.h" #include "third_party/skia/include/core/SkBitmap.h" @@ -32,17 +31,6 @@ SidebarContainer::SidebarContainer(TabContents* tab, // Create TabContents for sidebar. sidebar_contents_.reset( new TabContents(tab->profile(), NULL, MSG_ROUTING_NONE, NULL, NULL)); - sidebar_contents_->render_view_host()->set_is_extension_process(true); - const Extension* extension = GetExtension(); - if (extension && extension->is_app()) { - ExtensionService* service = tab->profile()->GetExtensionService(); - if (service) { - service->SetInstalledAppForRenderer( - sidebar_contents_->render_view_host()->process()->id(), extension); - } - } - sidebar_contents_->render_view_host()->AllowBindings( - BindingsPolicy::EXTENSION); sidebar_contents_->set_delegate(this); } -- cgit v1.1