diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-30 21:34:54 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-30 21:34:54 +0000 |
commit | f1cde5f421b507601fd23a7ec25962e5a1dbc3ba (patch) | |
tree | e5bbec0d585a0ba88fa6ebf92198badaadc120d7 /chrome/browser/resources/ntp/apps.js | |
parent | 9b3993054a94c9dfaf0323a100894fb03b4b2f3b (diff) | |
download | chromium_src-f1cde5f421b507601fd23a7ec25962e5a1dbc3ba.zip chromium_src-f1cde5f421b507601fd23a7ec25962e5a1dbc3ba.tar.gz chromium_src-f1cde5f421b507601fd23a7ec25962e5a1dbc3ba.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/resources/ntp/apps.js')
-rw-r--r-- | chrome/browser/resources/ntp/apps.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |