Avoid partial rows of most visited icons on the NTP.
commit17e96910eb69f6c05573b8a295dcb1792918e490
authornewt <newt@chromium.org>
Wed, 12 Aug 2015 00:14:13 +0000 (11 17:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 12 Aug 2015 00:14:45 +0000 (12 00:14 +0000)
tree73ac3b5c504b4e97febafd7ea5873de2857511ab
parentc0117efcdcd46d16aa8b5ad12a0a2ded7a108299
Avoid partial rows of most visited icons on the NTP.

This limits the number of rows of most visited tiles that will be
displayed on the new tab page, and hence ensures that we don't show
partial rows.

Previously on narrow devices, we'd show 8 tiles over three rows, which
feels unbalanced. Now we show just 2 rows (which happens to be 6 tiles).
In non-Google mode, we show 3 rows (up to 12 tiles).

Before:
 X X X
 X X X
 X X

After:
 X X X
 X X X

BUG=504367

Review URL: https://codereview.chromium.org/1275083003

Cr-Commit-Position: refs/heads/master@{#342946}
chrome/android/java/src/org/chromium/chrome/browser/ntp/IconMostVisitedLayout.java
chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java