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

Unified Diff: chrome/renderer/render_thread.cc

Issue 164039: Add module-level permissions to extensions. (Closed)
Patch Set: final nits Created 11 years, 4 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 | « chrome/renderer/render_thread.h ('k') | chrome/renderer/renderer_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.cc
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 46711d4b75d1a97edeb5d8f2181a0091cf74a62b..a8c5b6773457c09a20bbbac2ecea98a46b6dbc2b 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -201,6 +201,12 @@ void RenderThread::OnPageActionsUpdated(
ExtensionProcessBindings::SetPageActions(extension_id, page_actions);
}
+void RenderThread::OnExtensionSetPermissions(
+ const std::string& extension_id,
+ const std::vector<std::string>& permissions) {
+ ExtensionProcessBindings::SetPermissions(extension_id, permissions);
+}
+
void RenderThread::OnControlMessageReceived(const IPC::Message& msg) {
// App cache messages are handled by a delegate.
if (app_cache_dispatcher_->OnMessageReceived(msg))
@@ -231,6 +237,8 @@ void RenderThread::OnControlMessageReceived(const IPC::Message& msg) {
OnPurgePluginListCache)
IPC_MESSAGE_HANDLER(ViewMsg_Extension_UpdatePageActions,
OnPageActionsUpdated)
+ IPC_MESSAGE_HANDLER(ViewMsg_Extension_SetPermissions,
+ OnExtensionSetPermissions)
IPC_END_MESSAGE_MAP()
}
« no previous file with comments | « chrome/renderer/render_thread.h ('k') | chrome/renderer/renderer_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698