Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: chrome/browser/extensions/extension_function_dispatcher.cc

Issue 6894045: wip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_function_dispatcher.cc
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index 01c3ee55e511628051fce32bffc0a572a1ab105b..26b466b46957a4f394027ce0c80efac0e6b8d1b1 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -427,13 +427,10 @@ ExtensionFunctionDispatcher::ExtensionFunctionDispatcher(
profile_->GetChromeURLDataManager()->AddDataSource(favicon_source);
}
- // Update the extension permissions. Doing this each time we create an EFD
- // ensures that new processes are informed of permissions for newly installed
- // extensions.
- render_view_host->Send(new ExtensionMsg_SetAPIPermissions(
- extension->id(), extension->api_permissions()));
- render_view_host->Send(new ExtensionMsg_SetHostPermissions(
- extension->url(), extension->host_permissions()));
+ // Activate this extension in the renderer. This must be done before any
+ // extension JavaScript code runs because it controls some privileges the
+ // extension code has in the renderer.
+ render_view_host->Send(new ExtensionMsg_ActivateExtension(extension->id()));
NotificationService::current()->Notify(
NotificationType::EXTENSION_FUNCTION_DISPATCHER_CREATED,
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698