Add a webstore install method that lets us prompt the user before downloading.
A while back we decided to minimize friction by showing extension/app
permissions inline in the webstore, and let installs done via the private
webstore API skip the regular extension installation confirmation that happens
after downloading and unpacking the .crx file. We've reconsidered this and are
now adding a new private install method that lets us go back to having the
client display the confirmation dialog, but do it before downloading the .crx
file. The webstore just needs to pass the manifest and icon, and then after
downloading the .crx we make sure the unpacked extension's manifest matches
what we had prompted with.
BUG=75821
TEST=(Existing tests should pass; new functionality requires chrome web store
server side changes to test)
Review URL: http://codereview.chromium.org/6794010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80536 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index 8da4119b..268c6213c 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -300,6 +300,7 @@
RegisterFunction<SetStoreLoginFunction>();
RegisterFunction<PromptBrowserLoginFunction>();
RegisterFunction<BeginInstallFunction>();
+ RegisterFunction<BeginInstallWithManifestFunction>();
RegisterFunction<CompleteInstallFunction>();
// WebRequest.