[Icons NTP] Make local NTP large icons URL match device resolution.
commitec03fb7c5f7b128e29ef1b33b0a3c0241ae96f2c
authorhuangs <huangs@chromium.org>
Thu, 23 Apr 2015 20:58:38 +0000 (23 13:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 20:58:49 +0000 (23 20:58 +0000)
tree1ab8ee6a8a73027a9fba7bfc67dcada210b9c4e9
parent833437df7079a8a1670c5bff5f93e40e8b238ea0
[Icons NTP] Make local NTP large icons URL match device resolution.

For chrome.embeddedSearch.searchBox.getMostVisitedItemData(rid), the
largeIconUrl and fallbackIconUrl items now requests icon sizes depending
on window.devicePixelWidth, rather than the fixed 96. The task has to be
split between C++ and JS code due to data availability.

BUG=479774

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

Cr-Commit-Position: refs/heads/master@{#326640}
chrome/renderer/resources/extensions/searchbox_api.js
chrome/renderer/searchbox/searchbox_extension.cc