From 6516fff5269f704fb79872cbfbf6e43d622015ad Mon Sep 17 00:00:00 2001 From: "asargent@chromium.org" Date: Fri, 11 Jun 2010 17:54:18 +0000 Subject: 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 --- chrome/browser/views/extensions/extension_install_prompt2.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chrome/browser/views') 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_); -- cgit v1.1