Extensions: Send the tab id to platform apps.

This lets mediaGalleries.addUserSelectedFolder() figure out the tab
that triggered the API, so it can display the select dialog in the tab
when the platform app has no open windows.

BUG=333899

Review URL: https://codereview.chromium.org/145463002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249322 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index 6ac7e78..1de6920 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -509,6 +509,7 @@
   function->set_extension(extension);
   function->set_profile_id(profile);
   function->set_response_callback(callback);
+  function->set_source_tab_id(params.source_tab_id);
 
   return function;
 }