Index: chrome/browser/resources/ntp/apps.js |
diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js |
index 4dd8bc12ce14a1589f4118fd95c06d46691860d4..e61ebe0ea34a85798781e3f0628bddc5e0675a27 100644 |
--- a/chrome/browser/resources/ntp/apps.js |
+++ b/chrome/browser/resources/ntp/apps.js |
@@ -66,12 +66,12 @@ function getAppsCallback(data) { |
apps.createWebStoreClosedMenuElement()); |
} |
- if (!data.showLauncher || (shownSections & MINIMIZED_APPS)) { |
+ if (!data.showLauncher) |
appsSection.classList.add('disabled'); |
- } else { |
+ else |
appsSection.classList.remove('disabled'); |
- } |
- addClosedMenuFooter(apps.menu, 'apps', MINIMIZED_APPS, Section.APPS); |
+ |
+ addClosedMenuFooter(apps.menu, 'apps', MENU_APPS, Section.APPS); |
apps.loaded = true; |
if (apps.showPromo) |
@@ -121,7 +121,7 @@ var apps = (function() { |
function launchApp(appId) { |
var appsSection = $('apps'); |
- var expanded = !appsSection.classList.contains('hidden'); |
+ var expanded = !appsSection.classList.contains('collapsed'); |
var element = document.querySelector( |
(expanded ? '.maxiview' : '.miniview') + ' a[app-id=' + appId + ']'); |