diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 19:17:40 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 19:17:40 +0000 |
commit | 0e34d7893a17558b6520f853e63adc5e1cc4aa81 (patch) | |
tree | 2c61dfebb2207fddee26991e5d06f95cf37e66e7 /chrome/browser/download/download_manager.cc | |
parent | e5f72c76f42ca9163a6691191ae0b1f471e81952 (diff) | |
download | chromium_src-0e34d7893a17558b6520f853e63adc5e1cc4aa81.zip chromium_src-0e34d7893a17558b6520f853e63adc5e1cc4aa81.tar.gz chromium_src-0e34d7893a17558b6520f853e63adc5e1cc4aa81.tar.bz2 |
Don't prompt before installing a Theme, move existing prompt so that users aren't prompted twice in the case when they have extensions disabled.
Theme installation confirmation will be done through an infobar (allowing you to preview a lot of themes quickly without dealing with dialogs) - see CL 119235.
BUG=none
TEST=Install a theme, verify that you don't get prompted. Install an extension and verify that you do get prompted.
Review URL: http://codereview.chromium.org/119232
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_manager.cc')
-rw-r--r-- | chrome/browser/download/download_manager.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc index 93cbaed..c18d08d 100644 --- a/chrome/browser/download/download_manager.cc +++ b/chrome/browser/download/download_manager.cc @@ -1218,7 +1218,7 @@ void DownloadManager::OpenDownload(const DownloadItem* download, if (extension.size() > 0) extension = extension.substr(1); - // Open Chrome extensions with ExtenstionsService. For everthing else do shell + // Open Chrome extensions with ExtensionsService. For everything else do shell // execute. if (extension == chrome::kExtensionFileExtension) { OpenChromeExtension(download->full_path()); @@ -1228,20 +1228,8 @@ void DownloadManager::OpenDownload(const DownloadItem* download, } void DownloadManager::OpenChromeExtension(const FilePath& full_path) { -#if defined(OS_WIN) - if (win_util::MessageBox(GetActiveWindow(), - L"Are you sure you want to install this extension?\n\n" - L"This is a temporary message and it will be removed when extensions " - L"UI is finalized.", - l10n_util::GetString(IDS_PRODUCT_NAME).c_str(), MB_OKCANCEL) == IDOK) { - ExtensionsService* extensions_service = profile_->GetExtensionsService(); - extensions_service->InstallExtension(full_path); - } -#else - // TODO(port): Needs CreateChromeWindow. ExtensionsService* extensions_service = profile_->GetExtensionsService(); extensions_service->InstallExtension(full_path); -#endif } void DownloadManager::OpenDownloadInShell(const DownloadItem* download, |