From f1cde5f421b507601fd23a7ec25962e5a1dbc3ba Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Thu, 30 Sep 2010 21:34:54 +0000 Subject: Fix bug where we did not remember most visited section being closed in the case where no apps are installed. BUG=56867 TEST=Have no apps installed. Open NTP. Hide MV section. Open another NTP. MV section should be hidden. Review URL: http://codereview.chromium.org/3609002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61116 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/resources/ntp/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/resources') diff --git a/chrome/browser/resources/ntp/apps.js b/chrome/browser/resources/ntp/apps.js index 4f577db..2117afe 100644 --- a/chrome/browser/resources/ntp/apps.js +++ b/chrome/browser/resources/ntp/apps.js @@ -13,7 +13,7 @@ function getAppsCallback(data) { clearClosedMenu(apps.menu); if (data.apps.length == 0) { appsSection.classList.add('disabled'); - setShownSections(Section.THUMB); + layoutSections(); } else { data.apps.forEach(function(app) { appsSectionContent.appendChild(apps.createElement(app)); -- cgit v1.1