diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 20:44:19 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 20:44:19 +0000 |
commit | 4210fd1c641adf59480040629dfe8ffc43028637 (patch) | |
tree | 505880c3c092fef3c851ef80266410e636ab3d67 /chrome/browser/resources/ntp/apps.js | |
parent | f98880809f5a494fae92e52fa1e81c62a0a14cd8 (diff) | |
download | chromium_src-4210fd1c641adf59480040629dfe8ffc43028637.zip chromium_src-4210fd1c641adf59480040629dfe8ffc43028637.tar.gz chromium_src-4210fd1c641adf59480040629dfe8ffc43028637.tar.bz2 |
Fix a bug where we would show both the apps and thumb
sections if both sections were shown under the old version
of the ntp.
Also clean up some old cruft.
BUG=55610
TEST=Upgrade Chrome from an older version to a version with
this change with at least one app installed. Should see only
apps section. Do it with no apps installed, should see only
MV section.
Review URL: http://codereview.chromium.org/3393013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60216 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 0ae457a..7d30f9e 100644 --- a/chrome/browser/resources/ntp/apps.js +++ b/chrome/browser/resources/ntp/apps.js @@ -12,7 +12,7 @@ function getAppsCallback(data) { if (data.apps.length == 0) { appsSection.classList.add('disabled'); - layoutSections(); + setShownSections(Section.THUMB); return; } |