summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp/apps.js
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 22:04:28 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 22:04:28 +0000
commit121cd7b957d4ed22f861a22783de788703bcaf7c (patch)
treec8a391f2c463a0321b7cb2efd61f9760fca51249 /chrome/browser/resources/ntp/apps.js
parenta850ba49a28734c8660e04c52449a3b770a04d1b (diff)
downloadchromium_src-121cd7b957d4ed22f861a22783de788703bcaf7c.zip
chromium_src-121cd7b957d4ed22f861a22783de788703bcaf7c.tar.gz
chromium_src-121cd7b957d4ed22f861a22783de788703bcaf7c.tar.bz2
Add a confirmation prompt to app uninstallation on the ntp.
The uninstall dialog used to say: [===============================x] |Confirm Uninstallation | |--------------------------------| |<b>Uninstall Foo Extension?</b> | | | |Are you sure you want to | |uninstall this extension? | | | |================================| We don't have the bottom string with the word 'app', and I realized it is somewhat extraneous anyway. So just removed it in all cases and de-bolded the text above. Looks much better. Also, fixed a bug where the icon we display in the GTK dialogs is too big by doing image resizing in ExtensionInstallUI. BUG=54874 TEST=Uninstall app and extension. Both should have a prompt, and UI layout should be the same. Review URL: http://codereview.chromium.org/3332016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59157 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/ntp/apps.js')
-rw-r--r--chrome/browser/resources/ntp/apps.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js
index 4c717b3..0ae457a 100644
--- a/chrome/browser/resources/ntp/apps.js
+++ b/chrome/browser/resources/ntp/apps.js
@@ -12,6 +12,7 @@ function getAppsCallback(data) {
if (data.apps.length == 0) {
appsSection.classList.add('disabled');
+ layoutSections();
return;
}