Implement granular cross-origin XHR for extensions.

I left the temporary hack that allows all origins until we are
ready to break everything all at once.

Also, I still need to devise some way to test this.

BUG=12129

Review URL: http://codereview.chromium.org/173166

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24089 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index 5a3bb34..812e277 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -224,8 +224,10 @@
   // 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 ViewMsg_Extension_SetPermissions(
+  render_view_host->Send(new ViewMsg_Extension_SetAPIPermissions(
       extension->id(), extension->api_permissions()));
+  render_view_host->Send(new ViewMsg_Extension_SetHostPermissions(
+      extension->url(), extension->host_permissions()));
 }
 
 ExtensionFunctionDispatcher::~ExtensionFunctionDispatcher() {