diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-19 07:18:45 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-19 07:18:45 +0000 |
commit | 21217cab5b687af94175570fc301b6e33dc4e085 (patch) | |
tree | 6d9f74816baeb04301b44d88ad17afa2dabb74eb /chrome/browser/extensions/extensions_ui.cc | |
parent | f1c42aa16ff81a4983d17b717513e231e1850ab2 (diff) | |
download | chromium_src-21217cab5b687af94175570fc301b6e33dc4e085.zip chromium_src-21217cab5b687af94175570fc301b6e33dc4e085.tar.gz chromium_src-21217cab5b687af94175570fc301b6e33dc4e085.tar.bz2 |
Only create a desktop shortcut for apps if the user requests.
BUG=32361
Review URL: http://codereview.chromium.org/551052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36513 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_ui.cc')
-rw-r--r-- | chrome/browser/extensions/extensions_ui.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extensions_ui.cc b/chrome/browser/extensions/extensions_ui.cc index eadeafe..63c40a3 100644 --- a/chrome/browser/extensions/extensions_ui.cc +++ b/chrome/browser/extensions/extensions_ui.cc @@ -422,7 +422,10 @@ void ExtensionsDOMHandler::HandleUninstallMessage(const Value* value) { client.ConfirmUninstall(this, extension, uninstall_icon.get()); } -void ExtensionsDOMHandler::InstallUIProceed() { +void ExtensionsDOMHandler::InstallUIProceed(bool create_app_shortcut) { + // We only ever use ExtensionInstallUI for uninstalling, which should never + // result in it telling us to create a shortcut. + DCHECK(!create_app_shortcut); extensions_service_->UninstallExtension(extension_id_uninstalling_, false); extension_id_uninstalling_ = ""; } |