Do not enqueue a prefetch task when it prefetched to the end of list.
commitc3912dc65dd774328124e04a8023d3b5dbe27b07
authoryawano <yawano@chromium.org>
Wed, 4 Feb 2015 11:14:45 +0000 (4 03:14 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 4 Feb 2015 11:15:38 +0000 (4 11:15 +0000)
tree1b261c619cbe5119018ae45d65e42d34f0ddec54
parent0d4fcfbcbc0fc0b06c454d4a8706262a007eabba
Do not enqueue a prefetch task when it prefetched to the end of list.

Previously, ListThumbnailLoader preloaded images at the top of list when it preloaded to the end of list. However, especially high priority range is at the end of list, the benefit of preloading top images is small.

BUG=438050
TEST=out/Release/browser_tests --gtest_filter=FileManagerJsTest.ListThumbnailLoader

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

Cr-Commit-Position: refs/heads/master@{#314538}
ui/file_manager/file_manager/foreground/js/list_thumbnail_loader.js
ui/file_manager/file_manager/foreground/js/list_thumbnail_loader_unittest.html
ui/file_manager/file_manager/foreground/js/list_thumbnail_loader_unittest.js