Restrict salient image size before storing
commitf7b6773a958ef2cc742174a4dc9c1ab60e746bca
authorianwen <ianwen@chromium.org>
Mon, 23 Feb 2015 19:49:55 +0000 (23 11:49 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Feb 2015 19:50:43 +0000 (23 19:50 +0000)
tree84c5e78af999296c84573d403fbab0fb6ff2b808
parent3ea2d12051d9922ad4834c2efd19adfa1fe71cf1
Restrict salient image size before storing

It is a waste of storage to save images that are larger than device
display size. On tablet we should be even more aggressive about resizing
those images, because showing them won't take up the entire screen.

BUG=454623

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

Cr-Commit-Position: refs/heads/master@{#317628}
chrome/browser/enhanced_bookmarks/android/bookmark_image_service_android.cc
chrome/browser/enhanced_bookmarks/android/bookmark_image_service_android.h
components/enhanced_bookmarks/bookmark_image_service.cc
components/enhanced_bookmarks/bookmark_image_service.h