| Index: chrome/browser/resources/ntp/apps.js
|
| diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js
|
| index 5735b6135285a4131f180e43c3166888d5955cca..5bf1d1a0c91b2096e1c5a95cdf3df8f2fb872696 100644
|
| --- a/chrome/browser/resources/ntp/apps.js
|
| +++ b/chrome/browser/resources/ntp/apps.js
|
| @@ -10,6 +10,11 @@ function getAppsCallback(data) {
|
| appsSectionContent.textContent = '';
|
| appsMiniview.textContent = '';
|
|
|
| + if (data.apps.length == 0) {
|
| + appsSection.classList.add('disabled');
|
| + return;
|
| + }
|
| +
|
| data.apps.forEach(function(app) {
|
| appsSectionContent.appendChild(apps.createElement(app));
|
| });
|
| @@ -20,6 +25,7 @@ function getAppsCallback(data) {
|
| appsMiniview.appendChild(apps.createMiniviewElement(app));
|
| });
|
|
|
| + appsSection.classList.remove('disabled');
|
| layoutSections();
|
| }
|
|
|
|
|