Index: chrome/browser/resources/ntp/apps.js |
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js |
index 057ca6ac07a404ab3c8650505058ddda96e21b22..d9098d555f35675bc8599b0c9b42d1cebef72f3a 100644 |
--- a/chrome/browser/resources/ntp/apps.js |
+++ b/chrome/browser/resources/ntp/apps.js |
@@ -165,6 +165,12 @@ var apps = (function() { |
}, 500); |
div.addEventListener('webkitAnimationEnd', function(e) { |
div.removeAttribute('new'); |
+ |
+ // If we get new data (eg because something installs in another tab, |
+ // or because we uninstall something here), don't run the install |
+ // animation again. |
+ document.documentElement.setAttribute("install-animation-enabled", |
+ "false"); |
}); |
if ($('apps').classList.contains('hidden')) |
toggleSectionVisibilityAndAnimate('APPS'); |