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

Unified Diff: chrome/browser/extensions/bundle_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
« no previous file with comments | « chrome/browser/download/download_shelf_context_menu.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/bundle_installer.cc
diff --git a/chrome/browser/extensions/bundle_installer.cc b/chrome/browser/extensions/bundle_installer.cc
index 174eaa55cb4239d7aa1889c99e5003a91a695045..e7ffe37cebf5f8eea9d7ea2de51ab4987d19ebce 100644
--- a/chrome/browser/extensions/bundle_installer.cc
+++ b/chrome/browser/extensions/bundle_installer.cc
@@ -156,10 +156,11 @@ void BundleInstaller::CompleteInstall(NavigationController* controller,
// Since we've already confirmed the permissions, create an approval that
// lets CrxInstaller bypass the prompt.
scoped_ptr<WebstoreInstaller::Approval> approval(
- new WebstoreInstaller::Approval);
- approval->extension_id = i->first;
- approval->profile = profile_;
- approval->parsed_manifest.reset(parsed_manifests_[i->first]->DeepCopy());
+ WebstoreInstaller::Approval::CreateWithNoInstallPrompt(
+ profile_,
+ i->first,
+ scoped_ptr<base::DictionaryValue>(
+ parsed_manifests_[i->first]->DeepCopy())));
approval->use_app_installed_bubble = false;
approval->skip_post_install_ui = true;
« no previous file with comments | « chrome/browser/download/download_shelf_context_menu.cc ('k') | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698