diff options
author | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-20 22:56:36 +0000 |
---|---|---|
committer | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-20 22:56:36 +0000 |
commit | 514c54751f375c46d9556fea1b21c9ba2227e16c (patch) | |
tree | c49bd8f851091e6103bce54268a71191104c98ee /chrome/browser/extensions/bundle_installer.cc | |
parent | 24c463a5c2044be8032ef575bd45075ced931832 (diff) | |
download | chromium_src-514c54751f375c46d9556fea1b21c9ba2227e16c.zip chromium_src-514c54751f375c46d9556fea1b21c9ba2227e16c.tar.gz chromium_src-514c54751f375c46d9556fea1b21c9ba2227e16c.tar.bz2 |
Do not show the install prompt for themes.
We do not show the install prompt for themes because you can revert from the post-install infobar. This patch updates web store installs to use ExtensionInstallUI.
BUG=122351
TEST=inline, bundle and standard web store installs should still work
Review URL: http://codereview.chromium.org/10010038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/bundle_installer.cc')
-rw-r--r-- | chrome/browser/extensions/bundle_installer.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/extensions/bundle_installer.cc b/chrome/browser/extensions/bundle_installer.cc index db915d4..68a92bb 100644 --- a/chrome/browser/extensions/bundle_installer.cc +++ b/chrome/browser/extensions/bundle_installer.cc @@ -266,12 +266,8 @@ void BundleInstaller::ShowPrompt() { } else if (g_auto_approve_for_test == ABORT) { InstallUIAbort(true); } else { - ExtensionInstallUI::Prompt prompt( - ExtensionInstallUI::BUNDLE_INSTALL_PROMPT); - prompt.SetPermissions(permissions->GetWarningMessages()); - prompt.set_bundle(this); - - ShowExtensionInstallDialog(profile_, this, prompt); + install_ui_.reset(new ExtensionInstallUI(profile_)); + install_ui_->ConfirmBundleInstall(this, permissions); } } |