summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function_dispatcher.cc
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 23:24:16 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 23:24:16 +0000
commita7ab1b782edde4b8558ccba857ea64cb1e8e8d1c (patch)
treebe43e81cd80302d91ed9d0c9ddc4079f0e557b5a /chrome/browser/extensions/extension_function_dispatcher.cc
parent3a8d2de3be5629f532f4b26a4ddb7c0961cb25d7 (diff)
downloadchromium_src-a7ab1b782edde4b8558ccba857ea64cb1e8e8d1c.zip
chromium_src-a7ab1b782edde4b8558ccba857ea64cb1e8e8d1c.tar.gz
chromium_src-a7ab1b782edde4b8558ccba857ea64cb1e8e8d1c.tar.bz2
Part 2 of extension event refactor.
Extension events are no longer broadcast to an entire process. They are filtered by extension. This allows me to move the cross-incognito check into the browser, and remove a bunch of cruft associated with that. BUG=58214 TEST=no functional change Review URL: http://codereview.chromium.org/3775015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63448 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function_dispatcher.cc')
-rw-r--r--chrome/browser/extensions/extension_function_dispatcher.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index 7a99137..e3ca590 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -373,9 +373,6 @@ ExtensionFunctionDispatcher::ExtensionFunctionDispatcher(
epm->RegisterExtensionProcess(extension_id(),
render_view_host->process()->id());
- bool incognito_enabled =
- profile()->GetExtensionsService()->IsIncognitoEnabled(extension);
-
// If the extension has permission to load chrome://favicon/ resources we need
// to make sure that the DOMUIFavIconSource is registered with the
// ChromeURLDataManager.
@@ -395,8 +392,6 @@ ExtensionFunctionDispatcher::ExtensionFunctionDispatcher(
extension->id(), extension->api_permissions()));
render_view_host->Send(new ViewMsg_Extension_SetHostPermissions(
extension->url(), extension->host_permissions()));
- render_view_host->Send(new ViewMsg_Extension_ExtensionSetIncognitoEnabled(
- extension->id(), incognito_enabled, extension->incognito_split_mode()));
NotificationService::current()->Notify(
NotificationType::EXTENSION_FUNCTION_DISPATCHER_CREATED,