Reland 137540 - Disable off-store extension installs by default. Also get rid of ExtensionService::IsDownloadFromGallery."

This removes a pyauto test that was failing. The test needs
to be different depending on whether a feature is on or off,
but there's currently no good way to test whether a feature
is enabled from pyauto.

BUG=55584
[email protected]

Review URL: https://chromiumcodereview.appspot.com/10399069

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137699 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/webstore_inline_installer.cc b/chrome/browser/extensions/webstore_inline_installer.cc
index e563905..8b7df47 100644
--- a/chrome/browser/extensions/webstore_inline_installer.cc
+++ b/chrome/browser/extensions/webstore_inline_installer.cc
@@ -380,10 +380,10 @@
       web_contents()->GetBrowserContext());
 
   scoped_ptr<WebstoreInstaller::Approval> approval(
-      new WebstoreInstaller::Approval);
-  approval->extension_id = id_;
-  approval->profile = profile;
-  approval->parsed_manifest.reset(manifest_.get()->DeepCopy());
+      WebstoreInstaller::Approval::CreateWithNoInstallPrompt(
+          profile,
+          id_,
+          scoped_ptr<base::DictionaryValue>(manifest_.get()->DeepCopy())));
   approval->use_app_installed_bubble = true;
 
   scoped_refptr<WebstoreInstaller> installer = new WebstoreInstaller(