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

Unified Diff: chrome/browser/extensions/webstore_inline_installer.cc

Issue 10399069: Reland 137540 - Disable off-store extension installs by default. Also get rid of ExtensionService::… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
Index: chrome/browser/extensions/webstore_inline_installer.cc
diff --git a/chrome/browser/extensions/webstore_inline_installer.cc b/chrome/browser/extensions/webstore_inline_installer.cc
index e563905f5efe24db98d26e7da7c352754552fc90..8b7df4773f6dca8fa95049bbdbabb9fa40f3461e 100644
--- a/chrome/browser/extensions/webstore_inline_installer.cc
+++ b/chrome/browser/extensions/webstore_inline_installer.cc
@@ -380,10 +380,10 @@ void WebstoreInlineInstaller::InstallUIProceed() {
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(
« no previous file with comments | « chrome/browser/extensions/extension_webstore_private_api.cc ('k') | chrome/browser/extensions/webstore_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698