summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-11 17:54:18 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-11 17:54:18 +0000
commit6516fff5269f704fb79872cbfbf6e43d622015ad (patch)
treeb3142e970c6693aaa52d062b0f8747a407649264 /chrome/browser/views
parent78ecf43dbd649aca57273c388538da9c7bcb8d2a (diff)
downloadchromium_src-6516fff5269f704fb79872cbfbf6e43d622015ad.zip
chromium_src-6516fff5269f704fb79872cbfbf6e43d622015ad.tar.gz
chromium_src-6516fff5269f704fb79872cbfbf6e43d622015ad.tar.bz2
Tweak install and dangerous download dialogs for apps.
BUG=45155 TEST=Run chrome with the --enable-apps flag.Install an app - the confirmation dialog should say "..this App..." instead of "...this Extension...". Install an extension - it should stil say "Extension". Review URL: http://codereview.chromium.org/2730002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/extensions/extension_install_prompt2.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/views/extensions/extension_install_prompt2.cc b/chrome/browser/views/extensions/extension_install_prompt2.cc
index 1b8387c..cb6dab9 100644
--- a/chrome/browser/views/extensions/extension_install_prompt2.cc
+++ b/chrome/browser/views/extensions/extension_install_prompt2.cc
@@ -139,9 +139,10 @@ InstallDialogContent2::InstallDialogContent2(
right_column_width_ = kNoPermissionsRightColumnWidth;
} else {
right_column_width_ = kPermissionBoxWidth;
-
- will_have_access_to_ = new views::Label(
- l10n_util::GetString(IDS_EXTENSION_PROMPT2_WILL_HAVE_ACCESS_TO));
+ int label = extension->IsApp() ?
+ IDS_EXTENSION_PROMPT2_APP_WILL_HAVE_ACCESS_TO :
+ IDS_EXTENSION_PROMPT2_WILL_HAVE_ACCESS_TO;
+ will_have_access_to_ = new views::Label(l10n_util::GetString(label));
will_have_access_to_->SetMultiLine(true);
will_have_access_to_->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
AddChildView(will_have_access_to_);