| Index: chrome/browser/android/webapps/add_to_homescreen_manager.cc
|
| diff --git a/chrome/browser/android/webapps/add_to_homescreen_manager.cc b/chrome/browser/android/webapps/add_to_homescreen_manager.cc
|
| index ddfa514fc8dc3048dab65afd25409693f86e33d7..30ba4e661d37edba842a8ae6f9127a92b6dc70e5 100644
|
| --- a/chrome/browser/android/webapps/add_to_homescreen_manager.cc
|
| +++ b/chrome/browser/android/webapps/add_to_homescreen_manager.cc
|
| @@ -88,6 +88,8 @@ void AddToHomescreenManager::Start(content::WebContents* web_contents) {
|
| ShortcutHelper::GetMinimumHomescreenIconSizeInPx(),
|
| ShortcutHelper::GetIdealSplashImageSizeInPx(),
|
| ShortcutHelper::GetMinimumSplashImageSizeInPx(),
|
| + ShortcutHelper::GetIdealBadgeIconSizeInPx(),
|
| + ShortcutHelper::GetIdealBadgeIconSizeInPx(),
|
| check_webapk_compatible, this);
|
| }
|
|
|
| @@ -163,8 +165,10 @@ void AddToHomescreenManager::OnUserTitleAvailable(
|
| }
|
|
|
| void AddToHomescreenManager::OnDataAvailable(const ShortcutInfo& info,
|
| - const SkBitmap& icon) {
|
| + const SkBitmap& icon,
|
| + const SkBitmap& badge) {
|
| if (is_webapk_compatible_) {
|
| + // TODO(zpeng): Add badge to WebAPK installation flow.
|
| WebApkInstallService* install_service =
|
| WebApkInstallService::Get(
|
| data_fetcher_->web_contents()->GetBrowserContext());
|
|
|