summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 17:39:15 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 17:39:15 +0000
commit6b5b4e92a6527791677584ded24a63b89e135fbd (patch)
tree27bd0962dfa78d283dc3771c6ed9a768d68f745d /chrome
parentba94a5df0494e13e1b51b4f69b828161410cc7cd (diff)
downloadchromium_src-6b5b4e92a6527791677584ded24a63b89e135fbd.zip
chromium_src-6b5b4e92a6527791677584ded24a63b89e135fbd.tar.gz
chromium_src-6b5b4e92a6527791677584ded24a63b89e135fbd.tar.bz2
GTK: Change text for extension download UI.
BUG=25257 TEST=none Review URL: http://codereview.chromium.org/303009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/gtk/download_item_gtk.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/gtk/download_item_gtk.cc b/chrome/browser/gtk/download_item_gtk.cc
index 38c2875..c360998 100644
--- a/chrome/browser/gtk/download_item_gtk.cc
+++ b/chrome/browser/gtk/download_item_gtk.cc
@@ -568,9 +568,12 @@ void DownloadItemGtk::UpdateDangerWarning() {
std::wstring elided_filename = gfx::ElideFilename(
get_download()->original_name(),
gfx::Font(), kTextWidth);
+
std::string dangerous_warning =
- l10n_util::GetStringFUTF8(IDS_PROMPT_DANGEROUS_DOWNLOAD,
- WideToUTF16(elided_filename));
+ DownloadManager::IsExtensionInstall(get_download()) ?
+ l10n_util::GetStringUTF8(IDS_PROMPT_DANGEROUS_DOWNLOAD_EXTENSION) :
+ l10n_util::GetStringFUTF8(IDS_PROMPT_DANGEROUS_DOWNLOAD,
+ WideToUTF16(elided_filename));
if (theme_provider_->UseGtkTheme()) {
gtk_image_set_from_stock(GTK_IMAGE(dangerous_image_),