Implement manifest icon downloader
commite109fb09878be947da59c39b5876ae36c187d534
authorlalitm <lalitm@google.com>
Fri, 21 Aug 2015 16:35:54 +0000 (21 09:35 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 21 Aug 2015 16:36:39 +0000 (21 16:36 +0000)
tree30d4f83cfdba1b244246d7e40a001a9d0bf42faa
parentb81c922b573425d39f4baee87be8844ea30ab633
Implement manifest icon downloader

This CL unifies code used by app banners and shortcut
helper into one class. It further implements icon scaling
which fixes the issue of Intent overflow on Android when
there is a bad manifest/only a big icon is provided.

It also refactors code for a future CL which will implement
downloading of another icon for installed webapps
splashscreen on Android.

BUG=513666

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

Cr-Commit-Position: refs/heads/master@{#344787}
chrome/browser/android/banners/app_banner_data_fetcher_android.cc
chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h
chrome/browser/banners/app_banner_data_fetcher.cc
chrome/browser/banners/app_banner_data_fetcher.h
chrome/browser/manifest/manifest_icon_downloader.cc [new file with mode: 0644]
chrome/browser/manifest/manifest_icon_downloader.h [new file with mode: 0644]
chrome/browser/manifest/manifest_icon_downloader_unittest.cc [new file with mode: 0644]
chrome/chrome_browser.gypi
chrome/chrome_tests_unit.gypi